Skip to content

Commit

Permalink
src/main: switch to structured logging
Browse files Browse the repository at this point in the history
Signed-off-by: Enrico Joerns <[email protected]>
  • Loading branch information
ejoerns committed Oct 7, 2023
1 parent 7f44794 commit 51a55be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "bootchooser.h"
#include "config_file.h"
#include "context.h"
#include "event_log.h"
#include "install.h"
#include "rauc-installer-generated.h"
#include "service.h"
Expand Down Expand Up @@ -2601,6 +2602,9 @@ int main(int argc, char **argv)
fatal_mask |= G_LOG_LEVEL_CRITICAL;
g_log_set_always_fatal(fatal_mask);

/* set up structured logging */
g_log_set_writer_func(r_event_log_writer, NULL, NULL);

/* disable remote VFS */
g_assert(g_setenv("GIO_USE_VFS", "local", TRUE));

Expand Down

0 comments on commit 51a55be

Please sign in to comment.