Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions thumbnail_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import PIL
from PIL import Image

# the below 2 lines are necessary to remove any handlers. If you don't see loglines in your log file, try adding these 2 line
for handler in logging.root.handlers[:]:
logging.root.removeHandler(handler)
logging.basicConfig(filename='logfile.log', level=logging.DEBUG)

class ThumbnailMakerService(object):
Expand Down Expand Up @@ -73,4 +75,4 @@ def make_thumbnails(self, img_url_list):

end = time.perf_counter()
logging.info("END make_thumbnails in {} seconds".format(end - start))