Small logging change to avoid deprecation warning on py 2.6