return Rearm::REARM;
}
-void init_log(ServiceSet *sset) noexcept
+// Initialise the logging subsystem
+// Potentially throws std::bad_alloc or std::system_error
+void init_log(ServiceSet *sset)
{
service_set = sset;
log_stream[DLOG_CONS].registerWith(&eventLoop, STDOUT_FILENO, out_events); // TODO register in disabled state
enable_console_log(true);
}
-// Set up the main log to output to the given file descriptor
+// Set up the main log to output to the given file descriptor.
+// Potentially throws std::bad_alloc or std::system_error
void setup_main_log(int fd)
{
log_stream[DLOG_MAIN].init(STDERR_FILENO);
extern LogLevel log_level[2];
void enable_console_log(bool do_enable) noexcept;
-void init_log(ServiceSet *sset) noexcept;
+void init_log(ServiceSet *sset);
void setup_main_log(int fd);
bool is_log_flushed() noexcept;