Question 14
Consider the following Python code snippet.
Filename: code.py
import loggingimport sys
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
logging.warning('This is only for testing.')
if sys.argv[1] == 'info': logging.info('This code is working as expected.')
if sys.argv[1] == 'debug': logging.debug('This code may have issues, debugging...')
logging.warning('code execution complete!')What will be output on the terminal is the above code snippet is run on the terminal using command: python code.py debug