Logging cleanup
Make full use of log messages formatting
cookies: prevent a fatal