Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Niclas Esser
mpikat
Commits
7c4bfcf4
Commit
7c4bfcf4
authored
Jan 27, 2020
by
Tobias Winchen
Browse files
Fix example scpi server
parent
66be58f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
mpikat/core/scpi.py
View file @
7c4bfcf4
...
...
@@ -231,6 +231,7 @@ def launch_server(server):
# This line is required to bypass tornado error when no handler is
# is set on the root logger
logging
.
getLogger
().
addHandler
(
logging
.
NullHandler
())
coloredlogs
.
install
(
fmt
=
"[ %(levelname)s - %(asctime)s - %(name)s - %(filename)s:%(lineno)s] %(message)s"
,
level
=
logging
.
DEBUG
,
...
...
@@ -242,5 +243,7 @@ def launch_server(server):
ioloop
.
start
()
if
__name__
==
"__main__"
:
server
=
Example
(
"0.0.0.0"
,
5000
,
ioloop
)
server
=
Example
(
"0.0.0.0"
,
5000
)
launch_server
(
server
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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