Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _handle_new_writtens(self):
if len(self._uri_to_write) > 0:
logger.info("=========================================================")
logger.info("all outputs:")
for uri in self._uri_to_write:
logger.info("\t%s" % uri)
self._uri_to_write[:] = []
def _print_counters(self):
# print counters after run
c_dict = counter._get_all(grouped=True)
if len(c_dict) > 0:
logger.info("=========================================================")
logger.info("all counters:")
for group in sorted(c_dict.iterkeys()):
logger.info("\t%s:" % group)
for k, v in c_dict[group].iteritems():
logger.info("\t\t%s=%d" % (k, v))