Commit 312e4ac9 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[backend][resourcemodels] User logger instead of print

parent 8cb44c9d
Pipeline #40294 passed with stage
in 6 minutes and 42 seconds
......@@ -23,6 +23,7 @@
# #
###############################################################################
import logging
import simplejson as json
from PyQt5.QtSql import QSqlDatabase
......@@ -39,6 +40,8 @@ PARAMETER_TYPE_KEY = "parameter_type"
DEFAULT_VALUE_KEY = "default_value"
EDITED_KEY = "edited"
logger = logging.getLogger(__name__)
# ------------------------------------------------------------------------------
......@@ -172,7 +175,7 @@ class ExperimentResources:
for database_name in model.stringList():
database = Database(prefix_path, database_name)
if not database.valid:
print("Skipping invalid database:", database_name)
logger.debug("Skipping invalid database: {}".format(database_name))
continue
protocols = database.protocol_names
for protocol_name in protocols:
......
Supports Markdown
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