[gjs] Log the gjs-console command-line on startup
- From: Joe Shaw <joeshaw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gjs] Log the gjs-console command-line on startup
- Date: Tue, 19 Jan 2010 21:07:30 +0000 (UTC)
commit 3c8dd26d68c9dc12708715075d60c27b4b7e68e7
Author: Joe Shaw <joeshaw litl com>
Date: Tue Jan 19 16:07:12 2010 -0500
Log the gjs-console command-line on startup
Helps me figure out what log file corresponds to what process after
they have died.
gjs/console.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gjs/console.c b/gjs/console.c
index d9b265b..fb3b5b7 100644
--- a/gjs/console.c
+++ b/gjs/console.c
@@ -39,6 +39,7 @@ static GOptionEntry entries[] = {
int
main(int argc, char **argv)
{
+ char *command_line;
GOptionContext *context;
GError *error = NULL;
GjsContext *js_context;
@@ -61,6 +62,10 @@ main(int argc, char **argv)
setlocale(LC_ALL, "");
g_type_init();
+ command_line = g_strjoinv(" ", argv);
+ gjs_debug(GJS_DEBUG_LOG, "Command line: %s", command_line);
+ g_free(command_line);
+
gjs_debug(GJS_DEBUG_CONTEXT,
"Creating new context to eval console script");
js_context = gjs_context_new_with_search_path(include_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]