From ab64672f2b2ea4bf2b7eccf1aab1b0fc1ad6fb5f Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Sun, 12 Jan 2003 02:02:48 +0000 Subject: [PATCH] salvager-fast-restart-log-to-syslog-also-20030111 if -syslog, also log this to syslog --- src/vol/vol-salvage.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/vol/vol-salvage.c b/src/vol/vol-salvage.c index ba4cafe6d..beee0131a 100644 --- a/src/vol/vol-salvage.c +++ b/src/vol/vol-salvage.c @@ -496,7 +496,13 @@ static handleit(as) } } if (!seenany) { - printf("Exiting immediately without salvage. Look into the FileLog to find volumes which really need to be salvaged!\n"); + char *msg = "Exiting immediately without salvage. Look into the FileLog to find volumes which really need to be salvaged!"; + + if ( useSyslog ) + Log(msg); + else + printf("%s\n", msg); + Exit(0); } #endif /* FAST_RESTART */ @@ -588,8 +594,12 @@ static handleit(as) #ifdef FAST_RESTART if (ti = as->parms[18].items) { /* -DontSalvage */ - printf("Exiting immediately without salvage. Look into the FileLog"); - printf(" to find volumes which really need to be salvaged!\n"); + char *msg = "Exiting immediately without salvage. Look into the FileLog to find volumes which really need to be salvaged!"; + + if ( useSyslog ) + Log(msg); + else + printf("%s\n", msg); Exit(0); } #endif /* FAST_RESTART */ -- 2.39.5