summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2014-11-21 08:39:02 -0800
committerKeith Packard <keithp@keithp.com>2014-11-30 11:35:02 -0800
commitc2994001680a7dcf9c167886d49b7326c97cd5d1 (patch)
tree946ea3c5f7c16c388cf7366ece6c10126c5058a9
parentb09d59342804db7dbb8056dca43dd39f54e290aa (diff)
os: "Server terminated successfully" is not an error
ErrorFSigSafe calls LogVMessageVerbSigSafe with the message type set to X_ERROR. That generates this in the log: (EE) Server terminated successfully (0). Closing log file. People periodically report this as an error, sometimes quoting this "error" rather than an earlier error that actually caused a problem. v2: Use X_INFO instead of X_NOTICE Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--os/log.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/os/log.c b/os/log.c
index 2e3b3f61f..0532c2eb7 100644
--- a/os/log.c
+++ b/os/log.c
@@ -257,8 +257,11 @@ void
LogClose(enum ExitCode error)
{
if (logFile) {
- ErrorFSigSafe("Server terminated %s (%d). Closing log file.\n",
- (error == EXIT_NO_ERROR) ? "successfully" : "with error", error);
+ int msgtype = (error == EXIT_NO_ERROR) ? X_INFO : X_ERROR;
+ LogMessageVerbSigSafe(msgtype, -1,
+ "Server terminated %s (%d). Closing log file.\n",
+ (error == EXIT_NO_ERROR) ? "successfully" : "with error",
+ error);
fclose(logFile);
logFile = NULL;
logFileFd = -1;