gboolean throttling;
gboolean no_lock;
time_t throttling_time;
- sig_atomic_t do_reopen_log;
enum rspamd_log_type type;
pid_t pid;
guint32 repeats;
gchar *saved_function;
gchar *saved_module;
gchar *saved_id;
+ guint saved_loglevel;
rspamd_mempool_t *pool;
rspamd_mempool_mutex_t *mtx;
guint64 log_cnt[4];
rspamd_log->saved_module,
rspamd_log->saved_id,
rspamd_log->saved_function,
- rspamd_log->cfg->log_level,
+ rspamd_log->saved_loglevel,
rspamd_log->saved_message,
TRUE,
rspamd_log);
/* It is safe to use temporary buffer here as it is not static */
file_log_function (NULL, NULL, NULL,
G_STRFUNC,
- rspamd_log->cfg->log_level,
+ rspamd_log->saved_loglevel,
tmpbuf,
TRUE,
rspamd_log);
if (rspamd_log->saved_message == NULL) {
rspamd_log->saved_message = g_strdup (message);
rspamd_log->saved_function = g_strdup (function);
+
if (module) {
rspamd_log->saved_module = g_strdup (module);
}
+
if (id) {
rspamd_log->saved_id = g_strdup (id);
}
+
+ rspamd_log->saved_loglevel = log_level;
}
+
return;
}
else if (rspamd_log->repeats > REPEATS_MAX) {
rspamd_log->saved_module,
rspamd_log->saved_id,
rspamd_log->saved_function,
- log_level,
+ rspamd_log->saved_loglevel,
rspamd_log->saved_message,
forced,
arg);
rspamd_log->saved_module,
rspamd_log->saved_id,
rspamd_log->saved_function,
- log_level,
+ rspamd_log->saved_loglevel,
rspamd_log->saved_message,
forced,
arg);