mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-08 23:21:11 +03:00
Fixed server crash on some syslog setup.
This commit is contained in:
parent
5a3802301d
commit
b601d0e1fe
@ -1495,7 +1495,7 @@ function CreateMeshCentralServer(config, args) {
|
|||||||
|
|
||||||
// Send event to syslog is needed
|
// Send event to syslog is needed
|
||||||
if (obj.syslog && event.msg) { obj.syslog.log(obj.syslog.LOG_INFO, event.msg); }
|
if (obj.syslog && event.msg) { obj.syslog.log(obj.syslog.LOG_INFO, event.msg); }
|
||||||
if (obj.syslogjson) { obj.syslog.log(obj.syslogjson.LOG_INFO, JSON.stringify(event)); }
|
if (obj.syslogjson) { obj.syslogjson.log(obj.syslogjson.LOG_INFO, JSON.stringify(event)); }
|
||||||
|
|
||||||
obj.debug('dispatch', 'DispatchEvent', ids);
|
obj.debug('dispatch', 'DispatchEvent', ids);
|
||||||
if ((typeof event == 'object') && (!event.nolog)) {
|
if ((typeof event == 'object') && (!event.nolog)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user