mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
BE: mylog() better code radability
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -24,12 +24,7 @@ class Trigger:
|
||||
self.object_type == event["ObjectType"] and self.event_type == event["AppEventType"]
|
||||
)
|
||||
|
||||
mylog(
|
||||
"debug",
|
||||
[
|
||||
f"""[WF] self.triggered '{self.triggered}' for event '{get_array_from_sql_rows(event)} and trigger {json.dumps(triggerJson)}' """
|
||||
],
|
||||
)
|
||||
mylog("debug", f"""[WF] self.triggered '{self.triggered}' for event '{get_array_from_sql_rows(event)} and trigger {json.dumps(triggerJson)}' """)
|
||||
|
||||
if self.triggered:
|
||||
# object type corresponds with the DB table name
|
||||
|
||||
Reference in New Issue
Block a user