mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
LiveSync/Debug: Fix debug output
This commit is contained in:
parent
c529ff389c
commit
95a0f3ba22
@ -16,7 +16,7 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from indico.util.console import cformat, strip_ansi
|
||||
from indico.util.console import cformat
|
||||
from indico.util.struct.iterables import grouper
|
||||
|
||||
from indico_livesync import LiveSyncBackendBase, SimpleChange, MARCXMLGenerator, process_records, Uploader
|
||||
@ -34,12 +34,7 @@ class LiveSyncDebugBackend(LiveSyncBackendBase):
|
||||
"""
|
||||
|
||||
def _print(self, msg=''):
|
||||
if not self.task:
|
||||
print msg
|
||||
elif msg:
|
||||
if not isinstance(msg, basestring):
|
||||
msg = repr(msg)
|
||||
self.task.logger.info(strip_ansi(msg))
|
||||
print msg
|
||||
|
||||
def run(self):
|
||||
records = self.fetch_records()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user