diff options
author | Alon Levy <alevy@redhat.com> | 2011-12-19 15:33:45 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-01-13 17:37:50 +0200 |
commit | 9d2768d7de0d17fea15b5bfaff5b73eee5f57891 (patch) | |
tree | 686121b60f3b835e17d54d9b96a464c7cb94f2a1 /client | |
parent | 0ac13ecbc4c20d322b1c49935678c25e621a0a99 (diff) | |
download | spice-9d2768d7de0d17fea15b5bfaff5b73eee5f57891.tar.gz spice-9d2768d7de0d17fea15b5bfaff5b73eee5f57891.tar.xz spice-9d2768d7de0d17fea15b5bfaff5b73eee5f57891.zip |
client: log command line (rhbz 767581)
Diffstat (limited to 'client')
-rw-r--r-- | client/application.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/application.cpp b/client/application.cpp index e120dfe7..b92b6484 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)) { |