mirror of
https://github.com/3cky/mbusd.git
synced 2024-09-29 04:07:41 +02:00
* systemd-support: log to stderr in non-daemon mode to ensure log entries are pushed to journal right away (stdout is buffered)
This commit is contained in:
parent
bcc355c6be
commit
3e7fefc926
@ -192,8 +192,8 @@ CTAGS = ctags
|
|||||||
CSCOPE = cscope
|
CSCOPE = cscope
|
||||||
DIST_SUBDIRS = $(SUBDIRS)
|
DIST_SUBDIRS = $(SUBDIRS)
|
||||||
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in compile \
|
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in compile \
|
||||||
config.guess config.sub install-sh ltconfig ltmain.sh missing \
|
config.guess config.sub depcomp install-sh ltconfig ltmain.sh \
|
||||||
mkinstalldirs
|
missing mkinstalldirs
|
||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
distdir = $(PACKAGE)-$(VERSION)
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
top_distdir = $(distdir)
|
top_distdir = $(distdir)
|
||||||
|
@ -114,7 +114,7 @@ logw(int level, char *fmt, ...)
|
|||||||
strsize += vsnprintf(p, INTBUFSIZE - strsize, fmt, args);
|
strsize += vsnprintf(p, INTBUFSIZE - strsize, fmt, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
strcpy(str + strsize++, "\n");
|
strcpy(str + strsize++, "\n");
|
||||||
if (!isdaemon) printf("%s", str);
|
if (!isdaemon) fprintf(stderr, "%s", str);
|
||||||
if (*logfullname == '\0') return;
|
if (*logfullname == '\0') return;
|
||||||
log_app(logfullname, str);
|
log_app(logfullname, str);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user