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

fix(logging): Set default logging level as early as possible. #2574

Merged
merged 1 commit into from
Sep 20, 2024
Merged
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
5 changes: 3 additions & 2 deletions JitsiMeetJS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ import { VideoType } from './service/RTC/VideoType';

const logger = Logger.getLogger(__filename);

// Settin the default log levels to info early so that we avoid overriding a log level set externally.
Logger.setLogLevel(Logger.levels.INFO);

/**
* Indicates whether GUM has been executed or not.
*/
Expand Down Expand Up @@ -136,8 +139,6 @@ export default {
mediaDevices: JitsiMediaDevices as unknown,
analytics: Statistics.analytics as unknown,
init(options: IJitsiMeetJSOptions = {}) {
Logger.setLogLevel(Logger.levels.INFO);

// @ts-ignore
logger.info(`This appears to be ${browser.getName()}, ver: ${browser.getVersion()}`);

Expand Down