[Spice-devel] [PATCH] client: log command line (rhbz 767581)

Alon Levy alevy at redhat.com
Mon Dec 19 05:35:16 PST 2011


---
 client/application.cpp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/client/application.cpp b/client/application.cpp
index decf8a1..c621b75 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -2645,6 +2645,13 @@ int Application::main(int argc, char** argv, const char* version_str)
 
     init_globals();
     LOG_INFO("starting %s", version_str);
+    std::string command_line = argv[0];
+    for (int i = 1 ; i < argc ; ++i) {
+        command_line += " ";
+        command_line += argv[i];
+    }
+    LOG_INFO("command line: %s", command_line.c_str());
+
     std::auto_ptr<Application> app(new Application());
     AutoAbort auto_abort(*app.get());
     if (app->process_cmd_line(argc, argv, full_screen)) {
-- 
1.7.8



More information about the Spice-devel mailing list