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

Hans de Goede hdegoede at redhat.com
Mon Dec 19 05:41:26 PST 2011


Ack.

On 12/19/2011 02:35 PM, Alon Levy wrote:
> ---
>   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)) {


More information about the Spice-devel mailing list