@@ -100,15 +100,15 @@ def add_stdout(
100
100
if job_id is None :
101
101
job_id = self .job_id
102
102
if log_type == "info" :
103
- self .logger .info (message , job_id = job_id )
103
+ self .logger .info (message , job_id = job_id , ** kwargs )
104
104
if log_type == "debug" :
105
- self .logger .debug (message , job_id = job_id )
105
+ self .logger .debug (message , job_id = job_id , ** kwargs )
106
106
if log_type == "warn" :
107
- self .logger .warn (message , job_id = job_id )
107
+ self .logger .warn (message , job_id = job_id , ** kwargs )
108
108
if log_type == "warning" :
109
- self .logger .warning (message , job_id = job_id )
109
+ self .logger .warning (message , job_id = job_id , ** kwargs )
110
110
if log_type == "critical" :
111
- self .logger .critical (message , job_id = job_id )
111
+ self .logger .critical (message , job_id = job_id , ** kwargs )
112
112
if WORKER_LOGS_ON_DB :
113
113
cads_broker .database .add_event (
114
114
event_type = log_type ,
@@ -129,9 +129,9 @@ def add_stderr(
129
129
if job_id is None :
130
130
job_id = self .job_id
131
131
if log_type == "exception" :
132
- self .logger .exception (message , job_id = job_id )
132
+ self .logger .exception (message , job_id = job_id , ** kwargs )
133
133
if log_type == "error" :
134
- self .logger .error (message , job_id = job_id )
134
+ self .logger .error (message , job_id = job_id , ** kwargs )
135
135
if WORKER_LOGS_ON_DB :
136
136
cads_broker .database .add_event (
137
137
event_type = log_type ,
0 commit comments