Skip to content

Commit 29413dd

Browse files
committed
logging ceremony needed when running as a module
1 parent 4dd9899 commit 29413dd

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

rabbit/python_modules/rabbitmq.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
global url, descriptors, last_update, vhost, username, password, url_template, result, result_dict, keyToPath
1818

19+
log = None
1920

2021
JSON_PATH_SEPARATOR = "?"
2122
METRIC_TOKEN_SEPARATOR = "___"
@@ -91,10 +92,6 @@
9192
EXCHANGE_METRICS = ['rmq_exchange_publish_in_rate', 'rmq_exchange_publish_out_rate']
9293

9394

94-
def metric_cleanup():
95-
pass
96-
97-
9895
def dig_it_up(obj, path):
9996
try:
10097
path = path.split(JSON_PATH_SEPARATOR)
@@ -372,7 +369,7 @@ def buildExchangeDescriptors():
372369

373370

374371
def metric_cleanup():
375-
pass
372+
logging.shutdown()
376373

377374

378375
def setup_logging(handlers, facility, level):

0 commit comments

Comments
 (0)