changed logging order
This commit is contained in:
@@ -59,10 +59,13 @@ confirmation. It demonstrates proper error handling and logging for VRA manageme
|
||||
operations.
|
||||
"""
|
||||
|
||||
#!/usr/bin/python3
|
||||
import argparse
|
||||
# Configure logging BEFORE any imports
|
||||
import logging
|
||||
# logging.basicConfig(level=logging.DEBUG)
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format='%(asctime)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
import argparse
|
||||
import urllib3
|
||||
import json
|
||||
import sys
|
||||
@@ -206,12 +209,6 @@ def main():
|
||||
parser.add_argument("--ignore_ssl", action="store_true", help="Ignore SSL certificate verification")
|
||||
args = parser.parse_args()
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format='%(asctime)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
|
||||
try:
|
||||
# Setup client
|
||||
client = setup_client(args)
|
||||
|
||||
Reference in New Issue
Block a user