summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2020-02-05 15:59:29 +0100
committerTobias Brox <tobias@redpill-linpro.com>2020-02-05 15:59:29 +0100
commit03190e7b640f5f4b12ecc9d258078bb7c2ba4a24 (patch)
tree8df1528ac103d13c38874a15d46b27aa89cbac65
parent5e383776ffc11c6b0aa2ead7075d9b2aa8bd4775 (diff)
downloadcalendar-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
-rw-r--r--README.md17
-rwxr-xr-xcalendar-cli.py10
2 files changed, 8 insertions, 19 deletions
diff --git a/README.md b/README.md
index d7b590d..14049a1 100644
--- a/README.md
+++ b/README.md
@@ -129,23 +129,6 @@ Objectives
* It should be possible to get out lists ("agenda") of calendar items and todo-items.
* Interface for copying calendar items between calendars, even between calendars on distinct caldav servers
-Changelog
----------
-
-* 2013-09-15: Made a repository at github and wrote up this README.
-* 2013-09-24: version 0.01 - supports creating an ical-file based on command line parameters
-* 2013-09-28: version 0.02 - possible to add a calendar item to the caldav server
-* 2013-10-02: version 0.03 - support for configuration file
-* 2013-10-05: version 0.04 - no need to specify URL for the default calendar
-* 2013-12 - 2014-03: helped cyrilrbt on making a new release of the caldav library
-* 2014-03-07: version 0.05 - rewrote parts of the tool to using the caldav library. Nice!!!
-* 2014-03-14: version 0.6 - now agenda works quite smooth. I think this is becoming a useful tool.
-* 2015-02-15: version 0.7 - supports deletion of events, alternative templates for the event output and a small testing script
-* 2015-03-30: version 0.8 - has a interactive configuration mode for those not feeling comfortable with hand-crafting the config in json syntax
-* 2015-03-30: version 0.9 - now it's possible to set a duration when adding events to the calendar.
-* 2015-05-02: version 0.10 - added support for todo subcommand
-* 2016-01-23: version 0.11 - more work on tasks, some bugfixes, pulled in new command line options from Florian Tham and Zachary Palmer
-
Roadmap
-------
This is being moved out to the issues section in github.
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("""