Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
utils
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
f-interop-contributors
utils
Commits
4cadf3c0
Commit
4cadf3c0
authored
Jan 11, 2018
by
Federico Sismondi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaner prints
parent
77b7951d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
event_bus_utils.py
event_bus_utils.py
+4
-1
No files found.
event_bus_utils.py
View file @
4cadf3c0
...
...
@@ -59,7 +59,10 @@ class AmqpListener(threading.Thread):
@
classmethod
def
default_message_handler
(
cls
,
message_as_dict
):
clean_dict
=
dict
((
k
,
v
)
for
k
,
v
in
message_as_dict
.
items
()
if
v
)
print
(
json
.
dumps
(
clean_dict
,
indent
=
4
))
print
(
'-'
*
120
)
print
(
'
%
s :
%
s *'
%
(
'routing_key'
,
clean_dict
.
pop
(
'routing_key'
)))
print
(
'-'
*
120
)
print
(
json
.
dumps
(
clean_dict
,
indent
=
4
,
sort_keys
=
True
))
def
amqp_connect
(
self
):
self
.
connection
=
pika
.
BlockingConnection
(
pika
.
URLParameters
(
self
.
amqp_url
))
...
...
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