Improved logging.

This commit is contained in:
Bastian Kleineidam 2013-03-12 20:47:11 +01:00
parent d1f0f23b4c
commit e207c8ee47
6 changed files with 6 additions and 6 deletions

View file

@ -39,7 +39,7 @@ def handle_url(url, session, res):
continue continue
if contains_case_insensitive(res, name): if contains_case_insensitive(res, name):
# we cannot handle two comics that only differ in case # we cannot handle two comics that only differ in case
print("INFO: skipping possible duplicate", name, file=sys.stderr) print("INFO: skipping possible duplicate", repr(name), file=sys.stderr)
continue continue
res[name] = shortname res[name] = shortname
if not res: if not res:

View file

@ -224,7 +224,7 @@ def handle_url(url, session, res):
continue continue
if contains_case_insensitive(res, name): if contains_case_insensitive(res, name):
# we cannot handle two comics that only differ in case # we cannot handle two comics that only differ in case
print("INFO: skipping possible duplicate", name, file=sys.stderr) print("INFO: skipping possible duplicate", repr(name), file=sys.stderr)
continue continue
# find description # find description
end = match.end() end = match.end()

View file

@ -37,7 +37,7 @@ def handle_url(url, session, res):
continue continue
if contains_case_insensitive(res, name): if contains_case_insensitive(res, name):
# we cannot handle two comics that only differ in case # we cannot handle two comics that only differ in case
print("INFO: skipping possible duplicate", name, file=sys.stderr) print("INFO: skipping possible duplicate", repr(name), file=sys.stderr)
continue continue
res[name] = url res[name] = url

View file

@ -173,7 +173,7 @@ def handle_url(url, session, url_matcher, num_matcher, res):
name = capfirst(asciify(path)) name = capfirst(asciify(path))
if contains_case_insensitive(res, name): if contains_case_insensitive(res, name):
# we cannot handle two comics that only differ in case # we cannot handle two comics that only differ in case
print("INFO: skipping possible duplicate", name, file=sys.stderr) print("INFO: skipping possible duplicate", repr(name), file=sys.stderr)
continue continue
if name in exclude_comics: if name in exclude_comics:
continue continue

View file

@ -67,7 +67,7 @@ def handle_url(url, session, res):
continue continue
if contains_case_insensitive(res, name): if contains_case_insensitive(res, name):
# we cannot handle two comics that only differ in case # we cannot handle two comics that only differ in case
print("INFO: skipping possible duplicate", name, file=sys.stderr) print("INFO: skipping possible duplicate", repr(name), file=sys.stderr)
continue continue
res[name] = shortname res[name] = shortname

View file

@ -236,7 +236,7 @@ def handle_url(url, session, res):
continue continue
if contains_case_insensitive(res, name): if contains_case_insensitive(res, name):
# we cannot handle two comics that only differ in case # we cannot handle two comics that only differ in case
print("INFO: skipping possible duplicate", name, file=sys.stderr) print("INFO: skipping possible duplicate", repr(name), file=sys.stderr)
continue continue
# find out how many images this comic has # find out how many images this comic has
end = match.end() end = match.end()