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

Commit d2fbe656 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update harvest_tools notes, proceedings reports and talks to use logger.

parent 6ac920cb
......@@ -9,6 +9,8 @@ from .base import MSG_CRASH, MSG_LOAD
from .checkandfix import CheckException
from plugin_dbui import UNDEF_ID
T4 = " "*4
class Notes(Automaton):
"""Automaton for notes.
......@@ -30,8 +32,7 @@ class Notes(Automaton):
if not Automaton.check_record(self, record):
return False
if self.dbg:
print("check note record")
self.logger.debug(f"{T4}check record (note)")
try:
self.check.submitted(record)
......
......@@ -9,6 +9,8 @@ from .base import MSG_CRASH, MSG_LOAD
from .checkandfix import CheckException
from plugin_dbui import get_id, UNDEF_ID
T4 = " "*4
class Proceedings(Automaton):
"""Automaton for conference proceedings.
......@@ -30,8 +32,7 @@ class Proceedings(Automaton):
if not Automaton.check_record(self, record):
return False
if self.dbg:
print("check proceeding record")
self.logger.debug(f"{T4}check record (proceeding)")
try:
self.check.is_conference(record)
......
......@@ -11,6 +11,7 @@ from plugin_dbui import get_id, UNDEF_ID, UNKNOWN
MSG_REPORT_NO_NUMBER = "Reject no report number"
T4 = " "*4
class Reports(Automaton):
......@@ -33,8 +34,7 @@ class Reports(Automaton):
if not Automaton.check_record(self, record):
return False
if self.dbg:
print("check report record")
self.logger.debug(f"{T4}check record (report)")
if not record.report_number():
self.logs[-1].reject(MSG_REPORT_NO_NUMBER, record=record)
......
......@@ -10,6 +10,9 @@ from .checkandfix import CheckException
from plugin_dbui import get_id, UNDEF_ID
T4 = " "*4
class Talks(Automaton):
"""Automaton for conference talks.
......@@ -30,8 +33,7 @@ class Talks(Automaton):
if not Automaton.check_record(self, record):
return False
if self.dbg:
print("check talk record")
self.logger.debug(f"{T4}check record (talk)")
try:
self.check.is_conference(record)
......
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