From 6885f5661de946bc153e8e90f8112d52961dcb63 Mon Sep 17 00:00:00 2001 From: Jan Kupec Date: Mon, 2 Jun 2008 13:16:09 +0000 Subject: [PATCH] - log zypper version _after_ logger is set up --- src/zypper-main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zypper-main.cc b/src/zypper-main.cc index e50bb8e..55991d9 100644 --- a/src/zypper-main.cc +++ b/src/zypper-main.cc @@ -53,7 +53,6 @@ void signal_handler(int sig) int main(int argc, char **argv) { - MIL << "Hi, me zypper " VERSION " built " << __DATE__ << " " << __TIME__ << endl; struct Bye { ~Bye() { MIL << "Exiting main()" << endl; @@ -71,6 +70,8 @@ int main(int argc, char **argv) logfile = ZYPPER_LOG; zypp::base::LogControl::instance().logfile( logfile ); + MIL << "Hi, me zypper " VERSION " built " << __DATE__ << " " << __TIME__ << endl; + if (::signal(SIGINT, signal_handler) == SIG_ERR) cerr << "Failed to set SIGINT handler." << endl; if (::signal(SIGTERM, signal_handler) == SIG_ERR) -- 2.7.4