diff --git a/bigbluebutton-html5/imports/startup/client/logger.js b/bigbluebutton-html5/imports/startup/client/logger.js index 1088add229cf5d3c1a64d7dc1f1e7827eed571d5..6b8dc02b9be3021b9a7c282b68db1eb7c12fc4a6 100755 --- a/bigbluebutton-html5/imports/startup/client/logger.js +++ b/bigbluebutton-html5/imports/startup/client/logger.js @@ -17,11 +17,12 @@ import { nameFromLevel } from '@browser-bunyan/levels'; // Call the logger by doing a function call with the level name, I.e, logger.warn('Hi on warn') const LOG_CONFIG = Meteor.settings.public.clientLog || { console: { enabled: true, level: 'info' } }; -const { fullInfo } = Auth; // Custom stream that logs to an end-point class ServerLoggerStream extends ServerStream { write(rec) { + const { fullInfo } = Auth; + this.rec = rec; if (fullInfo.meetingId != null) { this.rec.clientInfo = fullInfo; @@ -33,6 +34,8 @@ class ServerLoggerStream extends ServerStream { // Custom stream to log to the meteor server class MeteorStream { write(rec) { + const { fullInfo } = Auth; + this.rec = rec; if (fullInfo.meetingId != null) { Meteor.call('logClient', nameFromLevel[this.rec.level], this.rec.msg, fullInfo);