diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2014-11-21 08:39:02 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-11-30 11:35:02 -0800 |
commit | c2994001680a7dcf9c167886d49b7326c97cd5d1 (patch) | |
tree | 946ea3c5f7c16c388cf7366ece6c10126c5058a9 /os/log.c | |
parent | b09d59342804db7dbb8056dca43dd39f54e290aa (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>
Diffstat (limited to 'os/log.c')
-rw-r--r-- | os/log.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |