~ted/ubuntu-app-launch/snap-icon-unbreak

« back to all changes in this revision

Viewing changes to zg-report-app.c

Updated to failure-is-an-option

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
static gboolean
24
24
watchdog_timeout (gpointer user_data)
25
25
{
26
 
        g_error("Watchdog triggered, took too long to submit into Zeitgeist Database!");
 
26
        g_warning("Watchdog triggered, took too long to submit into Zeitgeist Database!");
27
27
        g_main_loop_quit((GMainLoop *)user_data);
28
28
 
29
29
        return G_SOURCE_REMOVE;
84
84
        GMainLoop * main_loop = g_main_loop_new(NULL, FALSE);
85
85
 
86
86
        zeitgeist_log_insert_event(log, event, NULL, insert_complete, main_loop);
87
 
        g_timeout_add_seconds(4, watchdog_timeout, main_loop);
 
87
        g_timeout_add_seconds(2, watchdog_timeout, main_loop);
88
88
 
89
89
        g_main_loop_run(main_loop);
90
90