Fix creating logdir
This commit is contained in:
parent
4fac84098e
commit
411f4da340
1 changed files with 0 additions and 4 deletions
|
@ -282,14 +282,10 @@ LOG_CreateLogFileDir(void)
|
||||||
{
|
{
|
||||||
const char *logdir;
|
const char *logdir;
|
||||||
|
|
||||||
if (n_filelogs <= 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
logdir = CNF_GetLogDir();
|
logdir = CNF_GetLogDir();
|
||||||
|
|
||||||
if (!mkdir_and_parents(logdir)) {
|
if (!mkdir_and_parents(logdir)) {
|
||||||
LOG(LOGS_ERR, LOGF_Logging, "Could not create directory %s", logdir);
|
LOG(LOGS_ERR, LOGF_Logging, "Could not create directory %s", logdir);
|
||||||
n_filelogs = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue