From 11eb7b440c002d7fcc68a059aa277ef76c20a29d Mon Sep 17 00:00:00 2001 From: Rudolph Pienaar Date: Tue, 14 Mar 2023 16:01:08 -0400 Subject: [PATCH] Add better error noise and bump to 1.2.0 --- pflog/pflog.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pflog/pflog.py b/pflog/pflog.py index 6d62e4e..2fb5d9d 100644 --- a/pflog/pflog.py +++ b/pflog/pflog.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -__version__ = '1.0.14' +__version__ = '1.2.0' from pathlib import Path @@ -399,7 +399,11 @@ def pfprint(pftelspec:str, message:str, **kwargs) -> str: print('%s' % e) print("ERROR - could not POST to remote server!") except: + print(f"ERROR: {protocol}://{hostport} ") print("ERROR - could not connect to remote server!") - except: + except Exception as e: + print(f'ERROR input >>{pftelspec}<<') + print(f"ERROR in processed >>{pftelsub}<<") + print(f"ERROR: {e}") print("ERROR -- the pftel DB URL spec seems invalid!") return d_log