aboutsummaryrefslogtreecommitdiff
path: root/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/syslogd.c b/syslogd.c
index 2d5e52f25..7501380f6 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -521,6 +521,12 @@ extern int syslogd_main(int argc, char **argv)
}
}
+#ifdef BB_FEATURE_REMOTE_LOG
+ /* If they have not specified remote logging, then log locally */
+ if (doRemoteLog == FALSE)
+ local_logging = TRUE;
+#endif
+
/* Store away localhost's name before the fork */
gethostname(LocalHostName, sizeof(LocalHostName));
if ((p = strchr(LocalHostName, '.'))) {