From ac5346b3612e4f7dc3f97a57990959794b18c3a7 Mon Sep 17 00:00:00 2001 From: Benjamin Kaduk Date: Sun, 20 Dec 2015 22:11:23 -0600 Subject: [PATCH] util: Remove undocumented magic of mrafs-style logs The MR-AFS-style logs would always include the thread number in log entries with the timestamp; now that we are trying to rebrand this feature as "timestampped logs", having this bonus feature is unexpected. Thread ids are still used at higher log levels, as enabled by SIGTSTP. Change-Id: Ie8c276e47a34d729ccce685ddf27bfa9e7a8f9f1 Reviewed-on: https://gerrit.openafs.org/12136 Reviewed-by: Benjamin Kaduk Tested-by: BuildBot --- src/util/serverLog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/serverLog.c b/src/util/serverLog.c index 4ce846068..4461880df 100644 --- a/src/util/serverLog.c +++ b/src/util/serverLog.c @@ -116,7 +116,7 @@ vFSLog(const char *format, va_list args) localtime_r(¤ttime, &tm)); info = &tbuffer[len]; - if (mrafsStyleLogs || threadIdLogs) { + if (threadIdLogs) { num = (*threadNumProgram) (); if (num > -1) { snprintf(info, (sizeof tbuffer) - strlen(tbuffer), "[%d] ", -- 2.39.5