}
conf->logfile = _ms_config_get_str(conf->muse_dict, MUSE_LOG, NULL);
- if (conf->logfile)
+ if (conf->logfile) {
conf->log_enabled = (strncmp(conf->logfile, MUSE_USE_LOG, strlen(MUSE_USE_LOG) == 0));
- else
+ muse_core_remove_symlink(conf->logfile);
+ conf->fd = open(conf->logfile, O_CREAT | O_APPEND | O_WRONLY | O_NONBLOCK, 0644);
+ } else {
conf->log_enabled = FALSE;
-
- muse_core_remove_symlink(conf->logfile);
- conf->fd = open(conf->logfile, O_CREAT | O_APPEND | O_WRONLY | O_NONBLOCK, 0644);
+ }
conf->lockfile = _ms_config_get_str(conf->muse_dict, MUSE_LOCK, NULL);
if (!conf->lockfile) {