Separate logger into its own module.
Add retry information as debug messages.