Browse Source

Replace console with logger print in recording module

master
yanas 9 years ago
parent
commit
8c80acff2f
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      modules/xmpp/recording.js

+ 6
- 6
modules/xmpp/recording.js View File

@@ -51,7 +51,7 @@ Recording.prototype.handleJibriPresence = function (jibri) {
51 51
         return;
52 52
 
53 53
     var newState = attributes.status;
54
-    console.log("Handle jibri presence : ", newState);
54
+    logger.log("Handle jibri presence : ", newState);
55 55
 
56 56
     if (newState === this.state)
57 57
         return;
@@ -126,7 +126,7 @@ Recording.prototype.setRecordingJirecon =
126 126
             // TODO wait for an IQ with the real status, since this is
127 127
             // provisional?
128 128
             self.jireconRid = $(result).find('recording').attr('rid');
129
-            console.log('Recording ' +
129
+            logger.log('Recording ' +
130 130
                 ((state === Recording.status.ON) ? 'started' : 'stopped') +
131 131
                 '(jirecon)' + result);
132 132
             self.state = state;
@@ -137,7 +137,7 @@ Recording.prototype.setRecordingJirecon =
137 137
             callback(state);
138 138
         },
139 139
         function (error) {
140
-            console.log('Failed to start recording, error: ', error);
140
+            logger.log('Failed to start recording, error: ', error);
141 141
             errCallback(error);
142 142
         });
143 143
 };
@@ -156,7 +156,7 @@ function (state, callback, errCallback, options) {
156 156
     var self = this;
157 157
     this.connection.sendIQ(elem,
158 158
         function (result) {
159
-            console.log('Set recording "', state, '". Result:', result);
159
+            logger.log('Set recording "', state, '". Result:', result);
160 160
             var recordingElem = $(result).find('>conference>recording');
161 161
             var newState = recordingElem.attr('state');
162 162
 
@@ -174,7 +174,7 @@ function (state, callback, errCallback, options) {
174 174
             }
175 175
         },
176 176
         function (error) {
177
-            console.warn(error);
177
+            logger.warn(error);
178 178
             errCallback(error);
179 179
         }
180 180
     );
@@ -193,7 +193,7 @@ function (state, callback, errCallback, options) {
193 193
             this.setRecordingJibri(state, callback, errCallback, options);
194 194
             break;
195 195
         default:
196
-            console.error("Unknown recording type!");
196
+            logger.error("Unknown recording type!");
197 197
             return;
198 198
     }
199 199
 };

Loading…
Cancel
Save