Skip to content

Commit

Permalink
set prod log level to info (#4)
Browse files Browse the repository at this point in the history
* set prod log level to info

* try removing obfuscate from preview PR

* and remove obfuscate from deploy/main
  • Loading branch information
jifalops authored Nov 18, 2024
1 parent b78d5ca commit b3f4402
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
run: |
npm ci
npm run build
npm run obfuscate
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
run: |
npm ci
npm run build
npm run obfuscate
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
Expand Down
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 b3f4402

Please sign in to comment.