fix daemon logging