Displaying logs to the console if debug is enabled in config.