Skip to content

Commit

Permalink
salog improve
Browse files Browse the repository at this point in the history
  • Loading branch information
ali96343 committed Oct 28, 2023
1 parent 62ad70c commit 6a11b99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py4web/server_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def logging_conf(level=logging.WARN, logger_name=__name__, test_log=False):
try:
h = logging.FileHandler(log_file, mode="w", encoding="utf-8")
log_to.update({"handlers": [h]})
except ( LookupError, KeyError, ValueError) as ex:
except (LookupError, KeyError, ValueError) as ex:
print(f"{ex}, bad encoding {__file__}")
pass

Expand Down Expand Up @@ -492,7 +492,8 @@ def salog(pat='SA:'):
return _srv_log
dbg and salog().info(str(mess))
#caller = f" > {APP_NAME} > {sys._getframe().f_back.f_code.co_name}"
dbg and salog().info(mess + caller)
log_warn=log_info
log_debug=log_info
Expand Down

0 comments on commit 6a11b99

Please sign in to comment.