1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-30 18:46:37 +02:00

Fix non-JSON logging (set type 'text' by default)

This commit is contained in:
Bram Matthys
2021-08-06 11:29:49 +02:00
parent 065d24e248
commit bfe9fc49e4
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1871,6 +1871,7 @@ static void make_default_logblock(void)
safe_strdup(ca->file, "ircd.log");
convert_to_absolute_path(&ca->file, LOGDIR);
ca->flags |= LOG_CHGCMDS|LOG_CLIENT|LOG_ERROR|LOG_KILL|LOG_KLINE|LOG_OPER|LOG_OVERRIDE|LOG_SACMDS|LOG_SERVER|LOG_SPAMFILTER|LOG_TKL;
ca->type = LOG_TYPE_TEXT;
ca->logfd = -1;
AddListItem(ca, conf_log);
}
+1
View File
@@ -181,6 +181,7 @@ int config_run_log(ConfigFile *conf, ConfigEntry *ce)
ca = safe_alloc(sizeof(ConfigItem_log));
ca->logfd = -1;
ca->type = LOG_TYPE_TEXT; /* default */
if (strchr(ce->ce_vardata, '%'))
safe_strdup(ca->filefmt, ce->ce_vardata);
else