Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 0da73491 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update harvest_tools/articles to use logger.

parent 054e743b
......@@ -16,6 +16,7 @@ from plugin_dbui import get_id, UNDEF_ID
MSG_NO_EDITOR = "Reject article is not published"
MSG_TRANSFORM_PREPRINT = "Transform the preprint into an article"
T4 = " "*4
class Articles(Automaton):
......@@ -45,8 +46,7 @@ class Articles(Automaton):
if not Automaton.check_record(self, record):
return False
if self.dbg:
print("\tcheck record article")
self.logger.debug(f"{T4}check record (article)")
try:
......@@ -131,8 +131,7 @@ class Articles(Automaton):
modified into article, zero otherwise
"""
if self.dbg:
print("get existing article by fields")
self.logger.debug(f"{T4}get existing article by fields")
# alias
db = self.db
......@@ -247,8 +246,7 @@ class Articles(Automaton):
modified into article, zero otherwise
"""
if self.dbg:
print("check existing article by origin")
self.logger.debug(f"{T4}check existing article by origin")
# alias
db = self.db
......
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