mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-03-11 03:57:21 +00:00
dmpWorker is run as a childProcess, which is a completely separate nodejs instance. As such, the `logger` it obtains is a separate instance than the one in the parent. The parent reads the config file to determine the log level, but the childProcess does not. So the log level used in dmpWorker is always `debug`, regardless of the configuration options. In addition to polluting the logs, this is potentially a privacy issue, because `dmpWorker` logs the diffs of notes at the `debug` level, which will then enter the system logs. This commit fixes this by making `dmpWorker` send any messages back to the parent, who is responsible for logging. This also avoids any potential race conditions between the two loggers writing to the same output. Fixes #433 Signed-off-by: Dexter Chua <dec41@srcf.net> |
||
---|---|---|
.. | ||
lib | ||
test |