summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index c3748d7..6f3d6da 100644
--- a/src/log.c
+++ b/src/log.c
@@ -120,6 +120,8 @@ int log_targets_add(log_targets_t* targets, const char* conf)
return -1;
}
new_target->max_prio_ = prioptr[0] - '0';
+ if(new_target->max_prio_ > 0)
+ new_target->enabled_ = 1;
if(new_target->init != NULL) {
const char* confptr = NULL;