log method = none is not respected (#16523)
when the log method is set to none, do not log anything
Costa Tsaousis committed
Dec 2, 2023 at 00:12 UTC
14440f97a5b8cd1d07ba55bcbe55c6f0ff4b0444
1 file changed
+3
-1
libnetdata/log/log.c
+3
-1
@@ -891,7 +891,9 @@ static void nd_log_open(struct nd_log_source *e, ND_LOG_SOURCES source) {
891
e->fd = STDOUT_FILENO;
892
break;
893
894
- default:
894
+ case NDLM_DISABLED:
895
+ break;
896
+
897
case NDLM_DEFAULT:
898
case NDLM_STDERR:
899
e->method = NDLM_STDERR;