Change print statement to log_debug.