better logging for daemon