From d069be51899e484e7c343bae1a26841d3b2b6b87 Mon Sep 17 00:00:00 2001 From: Unrud Date: Mon, 24 Jul 2017 02:23:14 +0200 Subject: [PATCH] Export: Print collections and components if debugging is enabled --- radicale/__main__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radicale/__main__.py b/radicale/__main__.py index 0bb07db4..36f0dd91 100644 --- a/radicale/__main__.py +++ b/radicale/__main__.py @@ -65,6 +65,9 @@ def export_storage(config, path, debug=False): exit(1) while remaining_collections: collection = remaining_collections.pop(0) + if debug: + print("DEBUG: Exporting collection %r" % + ("/" + collection.path)) try: try: filesystem_path = pathutils.path_to_filesystem( @@ -94,6 +97,9 @@ def export_storage(config, path, debug=False): with open(props_filename, "w") as f: json.dump(props, f) for component in collection.components: + if debug: + print("DEBUG: Exporting component %r of collection %r" + % (component.name, "/" + collection.path)) try: if not pathutils.is_safe_filesystem_path_component( component.name):