changed logging order
This commit is contained in:
@@ -40,8 +40,13 @@ Example Usage:
|
||||
--ignore_ssl
|
||||
"""
|
||||
|
||||
import argparse
|
||||
# Configure logging BEFORE any imports
|
||||
import logging
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format='%(asctime)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
import argparse
|
||||
import urllib3
|
||||
import json
|
||||
import sys
|
||||
@@ -135,12 +140,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