You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though the above step works it logs everything (all API calls in the code) at the DEBUG level and isn't ideal. The ideal way to handle just the application logging is to use logger as shown below:
# Comment out this line in the code# logging.basicConfig(level=logging.DEBUG, format='%(message)s', force=True)logger=logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
# Replace every logging.info(), logging.debug() and logging.error() with # logger.info(), logger.debug() and logger.error() respectively
The text was updated successfully, but these errors were encountered:
Description
The logging instructions in the files create_eni.py and delete_eni.py do not log any records at
INFO
orDEBUG
log levels.Versions
Reproduction Code [Required]
Steps to reproduce the behavior:
delete_eni
LambdaExpected behaviour
Application logs logged with at least one record at
INFO
levelActual behaviour
No application logs logged at all
Additional context
DEBUG
level and isn't ideal. The ideal way to handle just the application logging is to uselogger
as shown below:The text was updated successfully, but these errors were encountered: