[sysprof] libsysprof: log source failure to console



commit dbc47a3a6969a48c59c91c36500a65c703a1936e
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 21 21:57:47 2019 -0700

    libsysprof: log source failure to console

 src/libsysprof/sysprof-local-profiler.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/libsysprof/sysprof-local-profiler.c b/src/libsysprof/sysprof-local-profiler.c
index 3413d44..fb14083 100644
--- a/src/libsysprof/sysprof-local-profiler.c
+++ b/src/libsysprof/sysprof-local-profiler.c
@@ -763,6 +763,10 @@ sysprof_local_profiler_source_failed (SysprofLocalProfiler *self,
   g_assert (reason != NULL);
   g_assert (SYSPROF_IS_SOURCE (source));
 
+  g_warning ("%s failed: %s",
+             G_OBJECT_TYPE_NAME (source),
+             reason ? reason->message : "unknown error");
+
   sysprof_local_profiler_track_completed (self, source);
 
   /* Failure emitted out of band */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]