From 03190e7b640f5f4b12ecc9d258078bb7c2ba4a24 Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Wed, 5 Feb 2020 15:59:29 +0100 Subject: --debug-logging did nothing. Now all communication with the caldav server is printed out to stderr. (logging should and could be refined a lot - but this is better than nothing). References https://github.com/python-caldav/caldav/issues/79#issuecomment-582441703 --- calendar-cli.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'calendar-cli.py') diff --git a/calendar-cli.py b/calendar-cli.py index 36b5ec6..d70b33f 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -48,10 +48,10 @@ try: except NameError: unicode = str -__version__ = "0.11.0.dev0" +__version__ = "0.12.0" __author__ = "Tobias Brox" __author_short__ = "tobixen" -__copyright__ = "Copyright 2013-2019, Tobias Brox" +__copyright__ = "Copyright 2013-2020, Tobias Brox" #__credits__ = [] __license__ = "GPLv3+" __license_url__ = "http://www.gnu.org/licenses/gpl-3.0-standalone.html" @@ -915,6 +915,12 @@ def main(): args = parser.parse_args(remaining_argv) + if args.debug_logging: + ## TODO: set up more proper logging in a more proper way + logging.getLogger().setLevel(logging.DEBUG) + caldav.log.setLevel(logging.DEBUG) + caldav.log.addHandler(logging.StreamHandler()) + if not args.nocaldav: if not args.calendar_url and not args.caldav_url: sys.stderr.write(""" -- cgit v1.2.3