When I execute logger.info(traceback.print_exc())
the trace gets on console rather than in the log file
I have logger.propagate = False also still the same issue
When I execute logger.info(traceback.print_exc()) the trace gets on console rather than in the log
Share
print_excprints the stack trace to stderr.Just use the exc_info=1 argument and it will automaticaly include the exception.