47396263 Fix logger.rb failed_to_log and fatal_to_log to accept exceptio...

...n argument. also fixes [#47781127]