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
f-interop-contributors
agent
Commits
0bb60299
Commit
0bb60299
authored
Jun 29, 2018
by
Federico Sismondi
Browse files
log modified kombu url used for connection
parent
5b4b973e
Changes
1
Hide whitespace changes
Inline
Side-by-side
agent/utils/opentun.py
View file @
0bb60299
...
...
@@ -435,13 +435,15 @@ class TunBase(object):
virtual_host
=
p
.
path
.
strip
(
'/'
),
query
=
query
)
log
.
info
(
'trying to connect with URL: %s'
%
kombu_url
)
except
KeyError
:
log
.
error
(
"Please export/set the environment var AMQP_URL, then restart agent"
)
sys
.
exit
(
1
)
log
.
warning
(
'No connection defined, trying to create connection'
)
self
.
connection
=
Connection
(
kombu_url
,
transport_options
=
{
'confirm_publish'
:
True
},)
transport_options
=
{
'confirm_publish'
:
True
},
)
self
.
producer
=
self
.
connection
.
Producer
(
serializer
=
'json'
)
self
.
exchange
=
rmq_exchange
...
...
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