Ease logfile analysis by letting zypper log it's commandline.
authorMichael Andres <ma@suse.de>
Thu, 17 Dec 2009 10:38:05 +0000 (11:38 +0100)
committerMichael Andres <ma@suse.de>
Thu, 17 Dec 2009 10:38:05 +0000 (11:38 +0100)
src/main.cc

index 4df428b..c32c936 100644 (file)
@@ -2,7 +2,7 @@
 #include <signal.h>
 //#include <readline/readline.h>
 
-#include "zypp/base/Logger.h"
+#include "zypp/base/LogTools.h"
 #include "zypp/base/LogControl.h"
 
 #include "main.h"
@@ -73,6 +73,7 @@ int main(int argc, char **argv)
   zypp::base::LogControl::instance().logfile( logfile );
 
   MIL << "===== Hi, me zypper " VERSION " built " << __DATE__ << " " <<  __TIME__ << " =====" << endl;
+  zypp::dumpRange( MIL, argv, argv+argc, "===== ", "'", "' '", "'", " =====" ) << endl;
 
   OutNormal out(Out::QUIET);