mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-27 07:24:01 +00:00
don't log an error if exiting with 0
Signed-off-by: Angus Salkeld <asalkeld@redhat.com> Reviewed-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
1b63c3cf57
commit
9fbd5c08c4
10
exec/util.c
10
exec/util.c
@ -140,9 +140,13 @@ void _corosync_exit_error (
|
||||
void _corosync_exit_error (
|
||||
enum e_ais_done err, const char *file, unsigned int line)
|
||||
{
|
||||
log_printf (LOGSYS_LEVEL_ERROR, "Corosync Cluster Engine exiting "
|
||||
"with status %d at %s:%u.\n", err, file, line);
|
||||
|
||||
if (err == AIS_DONE_EXIT) {
|
||||
log_printf (LOGSYS_LEVEL_NOTICE,
|
||||
"Corosync Cluster Engine exiting normally");
|
||||
} else {
|
||||
log_printf (LOGSYS_LEVEL_ERROR, "Corosync Cluster Engine exiting "
|
||||
"with status %d at %s:%u.\n", err, file, line);
|
||||
}
|
||||
qb_log_fini();
|
||||
exit (err);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user