Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
312e4ac9
Commit
312e4ac9
authored
Jun 03, 2020
by
Samuel GAIST
Browse files
[backend][resourcemodels] User logger instead of print
parent
8cb44c9d
Pipeline
#40294
passed with stage
in 6 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/backend/resourcemodels.py
View file @
312e4ac9
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment