Skip to content
Snippets Groups Projects
Commit 835fb731 authored by Benjamin Fiorini's avatar Benjamin Fiorini
Browse files

monitoring : hbase-consumer : improve logging on error

parent 66ec4596
Branches
Tags
No related merge requests found
......@@ -8,6 +8,7 @@ import simplejson as json
import threading
import logging
import time
import traceback
import happybase
import thrift
......@@ -166,5 +167,7 @@ class Pusher(threading.Thread):
self._flush_batches()
logging.debug(self.name + " : return !")
return
except:
except Exception, exc:
logging.critical(self.name + ' : ' + str(exc))
logging.critical(str(traceback.format_exc()))
self.STOP_FLAG.set()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment