Commit 99acc3a6 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish debug message for articles.py and automaton.py.

parent ddee02ba
...@@ -46,7 +46,7 @@ class Articles(Automaton): ...@@ -46,7 +46,7 @@ class Articles(Automaton):
return False return False
if self.dbg: if self.dbg:
print("check article record") print("\tcheck record article")
try: try:
......
...@@ -388,7 +388,7 @@ class Automaton(object): ...@@ -388,7 +388,7 @@ class Automaton(object):
""" """
if self.dbg: if self.dbg:
print("check record") print("\tcheck record automaton")
try: try:
# fix record with a missing OAI # fix record with a missing OAI
...@@ -564,7 +564,7 @@ class Automaton(object): ...@@ -564,7 +564,7 @@ class Automaton(object):
""" """
if self.dbg: if self.dbg:
print("\nprocessing record") print("\tprocessing record", recjson["recid"], "(process_recjson)")
collection_logs = self.collection_logs collection_logs = self.collection_logs
harvester = self.harvester harvester = self.harvester
...@@ -574,7 +574,7 @@ class Automaton(object): ...@@ -574,7 +574,7 @@ class Automaton(object):
record = build_record(recjson) record = build_record(recjson)
if self.dbg: if self.dbg:
print("\t", record.title().encode("utf-8")) print(f"\t{record.title()}")
# start the log for the record # start the log for the record
logs.append(Msg(harvester=harvester, logs.append(Msg(harvester=harvester,
...@@ -622,7 +622,7 @@ class Automaton(object): ...@@ -622,7 +622,7 @@ class Automaton(object):
""" """
if self.dbg: if self.dbg:
print("\nprocessing record", rec_id) print("\nget record", rec_id, "(process_recid)")
collection_logs = self.collection_logs collection_logs = self.collection_logs
harvester = self.harvester harvester = self.harvester
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment