Split flow status definitions in multiple files

This commit is contained in:
emanuele-f 2019-10-15 17:27:50 +02:00
parent b390fddcf2
commit b217909966
46 changed files with 741 additions and 386 deletions

View file

@ -4,6 +4,7 @@
require "lua_utils"
local json = require "dkjson"
local alert_consts = require "alert_consts"
local syslog = {}
@ -40,7 +41,7 @@ function syslog.dequeueAlerts(queue)
-- Most recent notifications first
for _, notif in pairsByValues(notifications, notification_timestamp_rev) do
local syslog_severity = alertLevelToSyslogLevel(severity)
local syslog_severity = alert_consts.alertLevelToSyslogLevel(severity)
local msg