Skip to content

Commit 8db9fcc

Browse files
committed
remove print() statements
1 parent ac45d3c commit 8db9fcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pycsw/plugins/profiles/iso19115p3/iso19115p3.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ def write_record(self, result, esn, outputschema, queryables, caps=None):
357357
try:
358358
val = util.getqattr(result, queryables['mdb:ResourceLanguage']['dbcol'])
359359
except Exception as e:
360-
print(f"{queryables=}")
361-
print("exc=", e)
360+
LOGGER.error(f"{queryables=}")
361+
LOGGER.error("exc=", e)
362362
if val is None:
363363
val = util.getqattr(result, queryables['mdb:Language']['dbcol'])
364364
lang_code = build_path(node,['mdb:defaultLocale', 'lan:PT_Locale', 'lan:language', 'lan:LanguageCode'], self.namespaces)
@@ -466,7 +466,7 @@ def write_record(self, result, esn, outputschema, queryables, caps=None):
466466
# Organisation address
467467
self._write_contact_address(ci_resp, ci_contact, **contact)
468468
except Exception as err:
469-
print(f"failed to parse contacts json of {cjson}: {err}")
469+
LOGGER.error(f"failed to parse contacts json of {cjson}: {err}")
470470

471471
# Creation date for record
472472
val = util.getqattr(result, queryables['mdb:Modified']['dbcol'])

0 commit comments

Comments
 (0)