Skip to content

Commit

Permalink
#1189 adding info logging (#1572)
Browse files Browse the repository at this point in the history
Co-authored-by: edSynapse <[email protected]>
  • Loading branch information
edDocMe360 and edSynapse authored Dec 14, 2023
1 parent b26c58c commit c3b2e02
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@

logger = logging.getLogger("vetext_incoming_forwarder_lambda")

LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO")
try:
logger.setLevel(LOG_LEVEL)
except ValueError:
logger.setLevel("INFO")
logger.warning("Invalid log level specified, defaulting to INFO")

# http timeout for calling vetext endpoint
HTTPTIMEOUT = (3.05, 1)

Expand Down

0 comments on commit c3b2e02

Please sign in to comment.