# HG changeset patch # User Matti Hamalainen # Date 1475756634 -10800 # Node ID 524915af5e8782306e7d3b72188d6ce616a71f88 # Parent 6e8e3695cfaabdd37e092c857490cb653aed41c5 Cosmetics. diff -r 6e8e3695cfaa -r 524915af5e87 multimerge.py --- a/multimerge.py Tue Aug 02 12:50:27 2016 +0300 +++ b/multimerge.py Thu Oct 06 15:23:54 2016 +0300 @@ -514,7 +514,7 @@ gcm_debug(3, u"Fetching calendar events .. ") src_events = [] for calendar in src_calendars: - gcm_debug(4, u"- "+calendar["id"]) + gcm_debug(4, u"- {0} ({1})".format(calendar["id"], calendar["summary"])) try: result = service.events().list( timeZone="EEST", @@ -528,12 +528,12 @@ c_found = None if "colorId" in calendar and calendar["colorId"] in colors["calendar"]: - gcm_debug(4, u"Calendar color: {0}".format(colors["calendar"][calendar["colorId"]])) + gcm_debug(4, u" Calendar color: {0}".format(colors["calendar"][calendar["colorId"]])) c_found = gcm_find_nearest_color(colors["event"], colors["calendar"][calendar["colorId"]], 100) if c_found: - gcm_debug(4, u"Found nearest event color ID: {0}, {1}".format(c_found, colors["event"][c_found])) + gcm_debug(4, u" Found nearest event color ID: {0}, {1}".format(c_found, colors["event"][c_found])) else: - gcm_debug(4, u"No matching event color found!") + gcm_debug(4, u" No matching event color found!") # Add events, if any, to main list events = gcm_generate_ids(result.get("items", []), calendar["id"], "___")