Browse Source

fix: use consistent log format for TIME prints

...it make it easier to process the logs in automated way.
dev1
paweldomas 5 years ago
parent
commit
079ec35066
3 changed files with 4 additions and 4 deletions
  1. 1
    1
      JitsiConferenceEventManager.js
  2. 2
    2
      modules/xmpp/strophe.jingle.js
  3. 1
    1
      modules/xmpp/xmpp.js

+ 1
- 1
JitsiConferenceEventManager.js View File

@@ -459,7 +459,7 @@ JitsiConferenceEventManager.prototype.setupRTCListeners = function() {
459 459
         const key = 'data.channel.opened';
460 460
 
461 461
         // TODO: Move all of the 'connectionTimes' logic to its own module.
462
-        logger.log(`(TIME) ${key}`, now);
462
+        logger.log(`(TIME) ${key}:\t`, now);
463 463
         conference.room.connectionTimes[key] = now;
464 464
         Statistics.sendAnalytics(
465 465
             createConnectionStageReachedEvent(key, { value: now }));

+ 2
- 2
modules/xmpp/strophe.jingle.js View File

@@ -196,7 +196,7 @@ class JingleConnectionPlugin extends ConnectionPlugin {
196 196
             break;
197 197
         }
198 198
         case 'transport-replace':
199
-            logger.info('(TIME) Start transport replace', now);
199
+            logger.info('(TIME) Start transport replace:\t', now);
200 200
             Statistics.sendAnalytics(createJingleEvent(
201 201
                 ACTION_JINGLE_TR_RECEIVED,
202 202
                 {
@@ -207,7 +207,7 @@ class JingleConnectionPlugin extends ConnectionPlugin {
207 207
             sess.replaceTransport($(iq).find('>jingle'), () => {
208 208
                 const successTime = window.performance.now();
209 209
 
210
-                logger.info('(TIME) Transport replace success!', successTime);
210
+                logger.info('(TIME) Transport replace success:\t', successTime);
211 211
                 Statistics.sendAnalytics(createJingleEvent(
212 212
                     ACTION_JINGLE_TR_SUCCESS,
213 213
                     {

+ 1
- 1
modules/xmpp/xmpp.js View File

@@ -370,7 +370,7 @@ export default class XMPP extends Listenable {
370 370
     attach(options) {
371 371
         const now = this.connectionTimes.attaching = window.performance.now();
372 372
 
373
-        logger.log(`(TIME) Strophe Attaching\t:${now}`);
373
+        logger.log('(TIME) Strophe Attaching:\t', now);
374 374
         this.connection.attach(options.jid, options.sid,
375 375
             parseInt(options.rid, 10) + 1,
376 376
             this.connectionHandler.bind(this, {

Loading…
Cancel
Save