finish logging

This commit is contained in:
2025-05-23 12:36:28 +02:00
parent 5ac37ad9ad
commit 79f6fc0265
6 changed files with 83 additions and 103 deletions

View File

@ -4,7 +4,7 @@
"""
from subprocess import CompletedProcess, run
from wp_app_config import AppConfig
from wp_app_config import AppConfig, logging
from common_tools import ConfigManager
ConfigManager.init(AppConfig.SETTINGS_FILE)
@ -18,7 +18,7 @@ if ConfigManager.get("autostart") != "off":
)
# Output from start_wg error
if process.stderr:
print(process.stderr) # this is for the error, later on logfile
logging.error(process.stderr, exc_info=True)
else:
pass