changeset 97:524915af5e87

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 06 Oct 2016 15:23:54 +0300
parents 6e8e3695cfaa
children fe3bfabf0b5f
files multimerge.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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"], "___")