cctool

A tool for managing contacts and calendars.
git clone https://git.ce9e.org/cctool.git

commit
b8cec36b5081bd12733166352e8d3cdbc3860a19
parent
0254c66d5975420bca502c5d86b5ad5e5450aa69
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2014-04-20 19:44
add logging

Diffstat

M cctool.py 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/cctool.py b/cctool.py

@@ -26,7 +26,6 @@
   26    26 # -	doc
   27    27 # -	tests
   28    28 # -	multidicts
   29    -1 # -	logging
   30    29 # -	merge
   31    30 # -	sort
   32    31 # -	filter
@@ -35,6 +34,7 @@
   35    34 import os
   36    35 import sys
   37    36 import argparse
   -1    37 import logging as log
   38    38 from StringIO import StringIO
   39    39 from ConfigParser import SafeConfigParser as ConfigParser
   40    40 import json
@@ -146,7 +146,7 @@ class LDIF(Format):
  146   146 		try:
  147   147 			parser.parse()
  148   148 		except ValueError:
  149    -1 			print "warning: ValueError after reading %i records" % parser.records_read
   -1   149 			log.warning("ValueError after reading %i records" % parser.records_read)
  150   150 		return parser.entries.itervalues()
  151   151 
  152   152 	@classmethod