diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2020-02-05 15:59:29 +0100 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2020-02-05 15:59:29 +0100 |
commit | 03190e7b640f5f4b12ecc9d258078bb7c2ba4a24 (patch) | |
tree | 8df1528ac103d13c38874a15d46b27aa89cbac65 /calendar-cli.py | |
parent | 5e383776ffc11c6b0aa2ead7075d9b2aa8bd4775 (diff) | |
download | calendar-cli-03190e7b640f5f4b12ecc9d258078bb7c2ba4a24.zip |
--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
Diffstat (limited to 'calendar-cli.py')
-rwxr-xr-x | calendar-cli.py | 10 |
1 files changed, 8 insertions, 2 deletions
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(""" |