From 9cbedb16d0de61ca1f5b406bbfa37f855070fc23 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 6 Jul 2014 19:26:12 +0900 Subject: [PATCH] nghttpx: Log filename and line number after severity in one line --- src/shrpx_log.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shrpx_log.cc b/src/shrpx_log.cc index 628acfc6..01003075 100644 --- a/src/shrpx_log.cc +++ b/src/shrpx_log.cc @@ -120,16 +120,16 @@ Log::~Log() auto cached_time = get_config()->cached_time; rv = snprintf(buf, sizeof(buf), - "%s PID%d [%s%s%s] %s\n %s(%s:%d)%s\n", + "%s PID%d [%s%s%s] %s%s:%d%s %s\n", cached_time->c_str(), getpid(), tty ? SEVERITY_COLOR[severity_] : "", SEVERITY_STR[severity_], tty ? "\033[0m" : "", - stream_.str().c_str(), tty ? "\033[1;30m" : "", filename_, linenum_, - tty ? "\033[0m" : ""); + tty ? "\033[0m" : "", + stream_.str().c_str()); if(rv < 0) { return;