Using retry logger for printing logs.
Replaced log messages with the use of logging class.