Bug fix in daemon logging