diff options
author | Martyn Russell <martyn@lanedo.com> | 2010-01-11 18:51:33 +0000 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2010-01-11 18:51:33 +0000 |
commit | 33797efda9f393edfe0edc3cc0bc4ebb5d5b5358 (patch) | |
tree | f9df96169df65d65649b010a5ff28e7e00ac0a64 /tests/libtracker-common/tracker-dbus-test.c | |
parent | df7f5eddaa636a334851bc0d9e55773ea573796c (diff) | |
download | tracker-33797efda9f393edfe0edc3cc0bc4ebb5d5b5358.tar.gz |
libtracker-common: Added D-Bus client lookup for logging
If verbosity is > 0 for tracker-store, the log will show:
<--- [%d|%s] Hello World
Where %d is the request ID and %s is the basename of the command that
sent the D-Bus request in. For example "tracker-stats".
Diffstat (limited to 'tests/libtracker-common/tracker-dbus-test.c')
-rw-r--r-- | tests/libtracker-common/tracker-dbus-test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/libtracker-common/tracker-dbus-test.c b/tests/libtracker-common/tracker-dbus-test.c index fa5b87652..d7b99d20d 100644 --- a/tests/libtracker-common/tracker-dbus-test.c +++ b/tests/libtracker-common/tracker-dbus-test.c @@ -157,14 +157,14 @@ test_dbus_request_failed (void) /* Default case: we set the error */ if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR)) { - tracker_dbus_request_failed (1, &error, "Test Error message"); + tracker_dbus_request_failed (1, NULL, &error, "Test Error message"); } g_test_trap_assert_stderr ("*Test Error message*"); /* Second common case: we have already the error and want only the log line */ error = g_error_new (1000, -1, "The indexer founded an error"); if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR)) { - tracker_dbus_request_failed (1, &error, NULL); + tracker_dbus_request_failed (1, NULL, &error, NULL); } g_test_trap_assert_stderr ("*The indexer founded an error*"); g_error_free (error); @@ -173,7 +173,7 @@ test_dbus_request_failed (void) /* Wrong use: error set and we add a new message */ error = g_error_new (1000, -1, "The indexer founded an error"); if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR)) { - tracker_dbus_request_failed (1, &error, "Dont do this"); + tracker_dbus_request_failed (1, NULL, &error, "Dont do this"); } g_test_trap_assert_stderr ("*GError set over the top of a previous GError or uninitialized memory*"); g_error_free (error); @@ -181,7 +181,7 @@ test_dbus_request_failed (void) error = NULL; /* Wrong use: no error, no message */ if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR)) { - tracker_dbus_request_failed (1, &error, NULL); + tracker_dbus_request_failed (1, NULL, &error, NULL); } g_test_trap_assert_stderr ("*Unset error and no error message*"); |