Logging only catches errors if config.debug is off.