Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set prod log level to info #4

Merged
merged 3 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}.`);