Skip to content

Commit

Permalink
set prod log level to info
Browse files Browse the repository at this point in the history
  • Loading branch information
jifalops committed Nov 18, 2024
1 parent b78d5ca commit 321d7fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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:', {
Expand All @@ -38,4 +40,4 @@ export const app = new App(
: new TelemetryServiceMock()
);

log.debug(performance.now(), 'Initialized.');
log.info(performance.now(), `Initialized ${base}.`);

0 comments on commit 321d7fa

Please sign in to comment.