finish logging
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user