nghttpx: Log filename and line number after severity in one line
This commit is contained in:
parent
9f1c819242
commit
9cbedb16d0
|
@ -120,16 +120,16 @@ Log::~Log()
|
||||||
auto cached_time = get_config()->cached_time;
|
auto cached_time = get_config()->cached_time;
|
||||||
|
|
||||||
rv = snprintf(buf, sizeof(buf),
|
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(),
|
cached_time->c_str(),
|
||||||
getpid(),
|
getpid(),
|
||||||
tty ? SEVERITY_COLOR[severity_] : "",
|
tty ? SEVERITY_COLOR[severity_] : "",
|
||||||
SEVERITY_STR[severity_],
|
SEVERITY_STR[severity_],
|
||||||
tty ? "\033[0m" : "",
|
tty ? "\033[0m" : "",
|
||||||
stream_.str().c_str(),
|
|
||||||
tty ? "\033[1;30m" : "",
|
tty ? "\033[1;30m" : "",
|
||||||
filename_, linenum_,
|
filename_, linenum_,
|
||||||
tty ? "\033[0m" : "");
|
tty ? "\033[0m" : "",
|
||||||
|
stream_.str().c_str());
|
||||||
|
|
||||||
if(rv < 0) {
|
if(rv < 0) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue