broker/log: set the log to lossy mode
We probably want to make this conditional on --verbose, so that it will
be possible to get all logs (at the cost of blocking and potential for
DoS) on non-production systems.
@@ -83,6 +83,9 @@ int broker_new(Broker **brokerp, int log_fd, int controller_fd, uint64_t max_byt
else
return error_origin(-ENOTRECOVERABLE);
+ /* XXX: make this run-time optional */
+ log_set_lossy(&broker->log, true);
+
r = bus_init(&broker->bus, &broker->log, max_bytes, max_fds, max_matches, max_objects);
if (r)
return error_fold(r);
