Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
15
Issues
15
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.core
Commits
5cbaac6a
Commit
5cbaac6a
authored
Apr 23, 2018
by
André Anjos
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use logging instead of prints
parent
894990a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
beat/core/test/test_invalid_database.py
beat/core/test/test_invalid_database.py
+6
-2
No files found.
beat/core/test/test_invalid_database.py
View file @
5cbaac6a
...
...
@@ -31,14 +31,18 @@ from ..database import Database
from
.
import
prefix
import
logging
logger
=
logging
.
getLogger
(
__name__
)
def
doit
(
filename
,
error_msg
):
database
=
Database
(
prefix
,
filename
)
assert
database
.
errors
print
(
error_msg
)
logger
.
error
(
error_msg
)
found
=
False
for
msg
in
database
.
errors
:
print
(
msg
,
error_msg
)
logger
.
error
(
'%s %s'
,
msg
,
error_msg
)
if
msg
.
find
(
error_msg
)
!=
-
1
:
found
=
True
break
...
...
Write
Preview
Markdown
is supported
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