lib/deploy: Add structured logging info for syncfs() times

I plan to at some point change rpm-ostree to read the journal messages from
libostree and render things like the time we spent in syncfs().

Closes: #1044
Approved by: jlebon
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2017-08-02 17:19:37 +00:00
1 parent 4d723df2f2
commit d1eb909cd0
3 files changed
+50 -10

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ ot_log_structured (const char *message,
*
* Returns: %TRUE if stdout is (probably) connnected to the systemd journal
*/
static gboolean
gboolean
ot_stdout_is_journal (void)
{
static gsize initialized;
+2
View File
@@ -24,6 +24,8 @@
G_BEGIN_DECLS
gboolean ot_stdout_is_journal (void);
void ot_log_structured_print_id_v (const char *message_id,
const char *format,
...) G_GNUC_PRINTF(2, 3);