mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
add logging for ASpell worker errors
This commit is contained in:
parent
7936269804
commit
3542918941
1 changed files with 6 additions and 2 deletions
|
@ -17,10 +17,14 @@ class ASpellWorker
|
|||
metrics.inc "aspellWorker-exit-" + @language
|
||||
@pipe.on 'error', (err) =>
|
||||
@state = 'error'
|
||||
@callback err, []
|
||||
logger.log process: @pipe.pid, error: err, stdout: output, stderr: error, lang: @language, "aspell worker error"
|
||||
if @callback?
|
||||
@callback err, []
|
||||
@pipe.stdin.on 'error', (err) =>
|
||||
@state = 'error'
|
||||
@callback err, []
|
||||
logger.log process: @pipe.pid, error: err, stdout: output, stderr: error, lang: @language, "aspell worker error on stdin"
|
||||
if @callback?
|
||||
@callback err, []
|
||||
|
||||
output = ""
|
||||
@pipe.stdout.on "data", (chunk) =>
|
||||
|
|
Loading…
Reference in a new issue