kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit d2c30fd70bc8e51ebec990dd0344ab61b52e843f
parent 9abf15a4980ad7d270417cd4715243fe99d9e1b5
Author: Joris Vink <joris@coders.se>
Date:   Wed,  6 Jul 2016 22:02:10 +0200

for single binaries use progname as the log id.

Diffstat:
src/utils.c | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/utils.c b/src/utils.c @@ -63,8 +63,15 @@ kore_debug_internal(char *file, int line, const char *fmt, ...) void kore_log_init(void) { +#if defined(KORE_SINGLE_BINARY) + extern const char *__progname; + const char *name = __progname; +#else + const char *name = "kore"; +#endif + if (!foreground) - openlog("kore", LOG_NDELAY | LOG_PID, LOG_DAEMON); + openlog(name, LOG_NDELAY | LOG_PID, LOG_DAEMON); } void