LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'verbose': { 'format': '[%(asctime)s] %(levelname)s <%(name)s>: %(message)s', }, 'simple': { 'format': '[%(asctime)s] [%(name)s] [%(levelname)s] %(message)s' }, }, 'filters': { }, 'handlers': { 'null': { 'level': 'DEBUG', 'class': 'django.utils.log.NullHandler', }, 'console':{ 'level':'DEBUG', 'class':'logging.StreamHandler', 'formatter': 'simple' }, 'mail_admins': { 'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler', 'filters': [] } }, 'loggers': { 'django': { 'handlers':['console'], 'propagate': True, 'level':'INFO', }, 'vision-api-poc': { 'handlers':['console'], 'propagate': False, 'level':'DEBUG', }, }}
import logginglog = logging.getLogger("vision-api-poc")
log.debug("Image size after resize: %s" % unicode(im.size))
Could you upload the image again? It doesn't seem to be loading for me on my end. I tested whether debug logs would show up as [!!] in a simple python app, and they didn't, so either something in your app is transforming the django debug logs to error logs, or something else more strange is going on. We'll be able to investigate if you show a screenshot of the *expanded* log in the Logs Viewer.