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

Don't log if no WebRTC #1574

Merged
merged 1 commit into from
Jan 12, 2021
Merged

Don't log if no WebRTC #1574

merged 1 commit into from
Jan 12, 2021

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jan 12, 2021

as hopefully explained in comment

as hopefully explained in comment
@dbkr dbkr requested a review from a team January 12, 2021 17:59
@@ -1663,7 +1663,8 @@ export function setVideoInput(deviceId: string) { videoInput = deviceId; }
export function createNewMatrixCall(client: any, roomId: string, options?: CallOpts) {
// typeof prevents Node from erroring on an undefined reference
if (typeof(window) === 'undefined' || typeof(document) === 'undefined') {
logger.info("No window or document object: WebRTC is not supported in this environment");
// NB. We don't log here as apps try to create a call object as a test for
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to suggest using console.debug to hide it in typical envs only to find out that console.debug is an alias for console.log in Node :'(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh but we're not even using bare console, but we set up loglevel with DEBUG on - so either way no bueno

@dbkr dbkr merged commit 65d4015 into develop Jan 12, 2021
@t3chguy t3chguy deleted the dbkr/dont_log_on_no_webrtc branch May 10, 2022 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants