From a9f88affa98642ab611340b0517d7ee1c18d264a Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 11 Feb 2021 15:05:18 -0700 Subject: [PATCH] refactor: use logger in serviceworker --- src/browser/register.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/browser/register.ts b/src/browser/register.ts index c975df87..607c8e92 100644 --- a/src/browser/register.ts +++ b/src/browser/register.ts @@ -1,3 +1,4 @@ +import { logger } from "@coder/logger" import { getOptions, Options, normalize } from "../common/util" import "./pages/error.css" @@ -11,7 +12,7 @@ export async function registerServiceWorker(navigator: Navigator, path: string, }) console.log("[Service Worker] registered") } catch (error) { - console.error(`[Service Worker] failed to register: ${error.message}`) + logger.error(`[Service Worker] failed to register: ${error.message}`) } }