1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Started work on internalization of event log.

This commit is contained in:
Ylian Saint-Hilaire 2020-09-08 18:59:58 -07:00
parent 8726254e36
commit 6aabbf9dc9
10 changed files with 185 additions and 38429 deletions

View file

@ -1645,7 +1645,7 @@ function CreateMeshCentralServer(config, args) {
// If the database is not setup, exit now.
if (!obj.db) return;
// Send event to syslog is needed
// Send event to syslog if needed
if (obj.syslog && event.msg) { obj.syslog.log(obj.syslog.LOG_INFO, event.msg); }
if (obj.syslogjson) { obj.syslogjson.log(obj.syslogjson.LOG_INFO, JSON.stringify(event)); }