setup cdbus_log when logging to stdout too

This commit is contained in:
Nedko Arnaudov 2023-05-01 13:21:13 +03:00
parent e88d2014ba
commit 7287ed8733
1 changed files with 6 additions and 0 deletions

View File

@ -156,6 +156,12 @@ void ladish_log_uninit()
free(g_log_filename);
}
#else
void ladish_log_init() __attribute__ ((constructor));
void ladish_log_init()
{
cdbus_log_setup(ladish_log);
}
#endif /* #if !defined(LOG_OUTPUT_STDOUT) */
#if 0