mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
added more logging
This commit is contained in:
parent
d0600a4b64
commit
531b83a032
1 changed files with 12 additions and 0 deletions
|
@ -21,6 +21,10 @@ module.exports =
|
||||||
timeout: twoMinsInMs
|
timeout: twoMinsInMs
|
||||||
exec args, opts, (err, stdout, stderr)->
|
exec args, opts, (err, stdout, stderr)->
|
||||||
timer.done()
|
timer.done()
|
||||||
|
if err?
|
||||||
|
logger.err err:err, stderr:stderr, sourcePath:sourcePath, requestedFormat:requestedFormat, "something went wrong converting file"
|
||||||
|
else
|
||||||
|
logger.log sourcePath:sourcePath, requestedFormat:requestedFormat, "finished converting file"
|
||||||
callback(err, destPath)
|
callback(err, destPath)
|
||||||
|
|
||||||
thumbnail: (sourcePath, callback)->
|
thumbnail: (sourcePath, callback)->
|
||||||
|
@ -36,6 +40,10 @@ module.exports =
|
||||||
opts =
|
opts =
|
||||||
timeout: twoMinsInMs
|
timeout: twoMinsInMs
|
||||||
exec args, opts,(err, stdout, stderr)->
|
exec args, opts,(err, stdout, stderr)->
|
||||||
|
if err?
|
||||||
|
logger.err err:err, stderr:stderr, sourcePath:sourcePath, "something went wrong converting file to preview"
|
||||||
|
else
|
||||||
|
logger.log sourcePath:sourcePath, "finished thumbnailing file"
|
||||||
callback(err, destPath)
|
callback(err, destPath)
|
||||||
|
|
||||||
preview: (sourcePath, callback)->
|
preview: (sourcePath, callback)->
|
||||||
|
@ -51,4 +59,8 @@ module.exports =
|
||||||
opts =
|
opts =
|
||||||
timeout: twoMinsInMs
|
timeout: twoMinsInMs
|
||||||
exec args, opts,(err, stdout, stderr)->
|
exec args, opts,(err, stdout, stderr)->
|
||||||
|
if err?
|
||||||
|
logger.err err:err, stderr:stderr, sourcePath:sourcePath, "something went wrong converting file to preview"
|
||||||
|
else
|
||||||
|
logger.log sourcePath:sourcePath, "finished converting file to preview"
|
||||||
callback(err, destPath)
|
callback(err, destPath)
|
||||||
|
|
Loading…
Reference in a new issue