Made daemon take full responsibility for logging #4128