Use logger for emitting the warning
Fix for using older versions of distribute