Fixed problem with logging debug messages, debug is set as default