Skip to content

Commit

Permalink
Log warnings instead of full exceptions for AMQP reconnects.
Browse files Browse the repository at this point in the history
Fixes bug 1010147.

Change-Id: I1af7614330307dfdf5c723710334a168bc30b50f
  • Loading branch information
jk0 committed Jun 13, 2012
1 parent 9e0c684 commit a5b9237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/rpc/impl_kombu.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def reconnect(self):
sleep_time = min(sleep_time, self.interval_max)

log_info['sleep_time'] = sleep_time
LOG.exception(_('AMQP server on %(hostname)s:%(port)d is'
LOG.warn(_('AMQP server on %(hostname)s:%(port)d is'
' unreachable: %(err_str)s. Trying again in '
'%(sleep_time)d seconds.') % log_info)
time.sleep(sleep_time)
Expand Down

0 comments on commit a5b9237

Please sign in to comment.