extra_logs: logged errors if a logger is set

Added extra logging for debugging purposes.