service: don't use stdio log channel
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 26 Feb 2015 14:23:59 +0000 (15:23 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 26 Feb 2015 14:23:59 +0000 (15:23 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
service/instance.c

index 6787ae043d1ae15a2b171ae1d334610723b16dd4..778b6bee4e0f74bc44b8f0b406bb471c9b2b014f 100644 (file)
@@ -280,9 +280,9 @@ instance_stdio(struct ustream *s, int prio, struct service_instance *in)
                arg0 = basename(blobmsg_data(blobmsg_data(in->command)));
                snprintf(ident, sizeof(ident), "%s[%d]", arg0, in->proc.pid);
 
-               ulog_open(ULOG_STDIO|ULOG_SYSLOG, LOG_DAEMON, ident);
+               ulog_open(ULOG_SYSLOG, LOG_DAEMON, ident);
                ulog(prio, "%s\n", str);
-               ulog_open(ULOG_STDIO|ULOG_SYSLOG, LOG_DAEMON, "procd");
+               ulog_open(ULOG_SYSLOG, LOG_DAEMON, "procd");
 
                ustream_consume(s, len);
        } while (1);