comparison core/management/commands/ssl_images.py @ 982:7db9037915c4

Logging tweaks to ssl_images.
author Brian Neal <bgneal@gmail.com>
date Sat, 24 Oct 2015 21:53:29 -0500
parents ef1558941bc9
children 26de15fb5a80
comparison
equal deleted inserted replaced
981:ef1558941bc9 982:7db9037915c4
72 72
73 requests_log = logging.getLogger("requests.packages.urllib3") 73 requests_log = logging.getLogger("requests.packages.urllib3")
74 requests_log.setLevel(logging.INFO) 74 requests_log.setLevel(logging.INFO)
75 requests_log.propagate = True 75 requests_log.propagate = True
76 requests_log.addHandler(handler) 76 requests_log.addHandler(handler)
77
78 dl_log = logging.getLogger("core.download")
79 dl_log.setLevel(logging.INFO)
80 dl_log.propagate = True
81 dl_log.addHandler(handler)
77 82
78 83
79 def resize_image(img_path): 84 def resize_image(img_path):
80 """Resizes the image found at img_path if necessary. 85 """Resizes the image found at img_path if necessary.
81 86