@@ -141,17 +141,13 @@ module.exports = eggspress('/batch', {
141
141
return ;
142
142
}
143
143
144
- // log fileinfos
145
- console . log ( 'HERE ARE THE FILEINFOS' ) ;
146
- console . log ( JSON . stringify ( fileinfos , null , 2 ) ) ;
147
-
148
144
const indexes_to_remove = [ ] ;
149
145
150
146
for ( let i = 0 ; i < pending_operations . length ; i ++ ) {
151
147
const op_spec = pending_operations [ i ] ;
152
148
if ( ! operation_requires_file ( op_spec ) ) {
153
149
indexes_to_remove . push ( i ) ;
154
- console . log ( `EXEUCING OP ${ op_spec . op } `)
150
+ log . info ( `executing ${ op_spec . op } `) ;
155
151
response_promises . push (
156
152
batch_exe . exec_op ( req , op_spec )
157
153
) ;
@@ -231,7 +227,6 @@ module.exports = eggspress('/batch', {
231
227
batch_widget . ic = pending_operations . length ;
232
228
on_first_file ( ) ;
233
229
}
234
- console . log ( `GOT A FILE` )
235
230
236
231
if ( fileinfos . length == 0 ) {
237
232
request_errors_ . push (
@@ -256,7 +251,6 @@ module.exports = eggspress('/batch', {
256
251
stream . on ( 'end' , ( ) => {
257
252
stream . destroy ( ) ;
258
253
} ) ;
259
- console . log ( 'DISCARDED A FILE' ) ;
260
254
return ;
261
255
}
262
256
@@ -269,7 +263,7 @@ module.exports = eggspress('/batch', {
269
263
} ) ;
270
264
271
265
busboy . on ( 'close' , ( ) => {
272
- console . log ( 'GOT DONE READING ') ;
266
+ log . info ( 'busboy close ') ;
273
267
still_reading . resolve ( ) ;
274
268
} ) ;
275
269
@@ -284,11 +278,11 @@ module.exports = eggspress('/batch', {
284
278
return ;
285
279
}
286
280
287
- log . noticeme ( 'WAITING ON OPERATIONS ')
281
+ log . info ( 'waiting for operations ')
288
282
let responsePromises = response_promises ;
289
283
// let responsePromises = batch_exe.responsePromises;
290
284
const results = await Promise . all ( responsePromises ) ;
291
- log . noticeme ( 'RESPONSE GETS SENT! ') ;
285
+ log . info ( 'sending response ') ;
292
286
293
287
frame . done ( ) ;
294
288
0 commit comments