Skip to content

Commit 67e1c14

Browse files
committed
WebSocket Comm: Add support for notice, error, warning and critical activity log entries from remote servers.
1 parent 6e94809 commit 67e1c14

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

lib/comm.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,19 @@ class Communication {
373373
if (socket.auth && (socket.type == 'server')) this.handleMonitorPluginTestResult(socket, data);
374374
break;
375375

376+
case 'notice':
377+
case 'error':
378+
case 'warning':
379+
case 'critical':
380+
// allow satellite to log to main activity log
381+
if (socket.auth && (socket.type == 'server')) {
382+
data.server = socket.server.id;
383+
data.hostname = socket.server.hostname;
384+
data.ip = socket.server.ip;
385+
this.logActivity(cmd, data);
386+
}
387+
break;
388+
376389
// other commands here
377390

378391
} // switch cmd

0 commit comments

Comments
 (0)