mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
move logge def to global
This commit is contained in:
@@ -28,6 +28,13 @@ import configparser
|
||||
from io import StringIO
|
||||
from so_logging_utils import setup_logging
|
||||
|
||||
# Set up logging using the so_logging_utils library
|
||||
logger = setup_logging(
|
||||
logger_name='so-qcow2-modify-network',
|
||||
log_file_path='/opt/so/log/hypervisor/so-qcow2-modify-network.log',
|
||||
log_level=logging.INFO,
|
||||
format_str='%(asctime)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
|
||||
NETWORK_CONFIG_DIR = "/etc/NetworkManager/system-connections"
|
||||
|
||||
@@ -161,13 +168,6 @@ def parse_arguments():
|
||||
return args
|
||||
|
||||
def main():
|
||||
# Set up logging using the so_logging_utils library
|
||||
logger = setup_logging(
|
||||
logger_name='so-qcow2-modify-network',
|
||||
log_file_path='/opt/so/log/hypervisor/so-qcow2-modify-network.log',
|
||||
log_level=logging.INFO,
|
||||
format_str='%(asctime)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
try:
|
||||
args = parse_arguments()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user