Fix printer format to print logs and avoid netcreds shutting down

This commit is contained in:
HAMIDx9 2016-01-28 22:03:07 +03:30
commit 2490b87f43

View file

@ -916,7 +916,7 @@ def get_login_pass(body):
def printer(src_ip_port, dst_ip_port, msg): def printer(src_ip_port, dst_ip_port, msg):
if dst_ip_port != None: if dst_ip_port != None:
print_str = '[{} > {}] {}'.format((src_ip_port, dst_ip_port, msg)) print_str = '[{} > {}] {}'.format(src_ip_port, dst_ip_port, msg)
# All credentials will have dst_ip_port, URLs will not # All credentials will have dst_ip_port, URLs will not
log.info("{}".format(print_str)) log.info("{}".format(print_str))