This function has a log.info statement in it.  Might be simpler to just change that over to log.exception if you are looking for a higher loglevel than duplicate it.