mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
added more logging
This commit is contained in:
parent
531b83a032
commit
b85017759e
1 changed files with 6 additions and 1 deletions
|
@ -10,6 +10,11 @@ module.exports =
|
|||
args = "optipng #{localPath}"
|
||||
opts =
|
||||
timeout: 60 * 1000
|
||||
exec args, opts, callback
|
||||
exec args, opts,(err, stdout, stderr)->
|
||||
if err?
|
||||
logger.err err:err, stderr:stderr, localPath:localPath, "something went wrong converting compressPng"
|
||||
else
|
||||
logger.log localPath:localPath, "finished compressPng file"
|
||||
callback(err)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue