From 321d7fa8e7449f0a38efd2057e77f89fa4110fa5 Mon Sep 17 00:00:00 2001 From: Jacob Phillips Date: Mon, 18 Nov 2024 13:21:45 -0500 Subject: [PATCH] set prod log level to info --- src/lib/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/index.ts b/src/lib/index.ts index 1ebc7b6..1959e59 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,5 +1,7 @@ // place files you want to import through the `$lib` alias in this folder. +import { base } from '$app/paths'; + import { AdvertisingServiceGoogleAdsense } from './advertising/service_google_adsense'; import { AdvertisingServiceMock } from './advertising/service_mock'; import { App } from './app'; @@ -17,7 +19,7 @@ import { TelemetryServiceMock } from './telemetry/service_mock'; const init_start = performance.now(); -export const log = new Log(IS_PRODUCTION_BUILD ? Log.TRACE : Log.TRACE); +export const log = new Log(IS_PRODUCTION_BUILD ? Log.INFO : Log.TRACE); log.debug(init_start, 'Initializing...'); log.debug('Config:', { @@ -38,4 +40,4 @@ export const app = new App( : new TelemetryServiceMock() ); -log.debug(performance.now(), 'Initialized.'); +log.info(performance.now(), `Initialized ${base}.`);