Skip to content

Commit

Permalink
Add better error noise and bump to 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolphpienaar committed Mar 14, 2023
1 parent 8edf0fb commit 11eb7b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pflog/pflog.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
__version__ = '1.0.14'
__version__ = '1.2.0'

from pathlib import Path

Expand Down Expand Up @@ -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

0 comments on commit 11eb7b4

Please sign in to comment.