We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8fb405c + ed57552 commit c34da25Copy full SHA for c34da25
telemetry/src/syslogging.c
@@ -10,15 +10,17 @@ FILE *__syslogging_file;
10
atomic_int syslog_count;
11
12
/*
13
- * Sets up the syslogging to a file
14
- * @return Zero on success, or errno on failure
+ * Sets up the syslogging to a file if syslog output is enabled.
+ * @return Zero on success or skip, or errno on failure
15
*/
16
int setup_syslogging(void) {
17
+#ifdef CONFIG_INSPACE_SYSLOG_PATH
18
atomic_set(&syslog_count, 0);
19
__syslogging_file = fopen(CONFIG_INSPACE_SYSLOG_PATH, "a");
20
if (__syslogging_file == NULL) {
21
return errno;
22
}
23
+#endif
24
return 0;
25
26
0 commit comments