mirror of https://github.com/Aidaho12/haproxy-wi
parent
13be24f00f
commit
e4d7640b2c
|
@ -122,7 +122,7 @@ def logging(server_ip: str, action: str, **kwargs) -> None:
|
|||
login = ''
|
||||
cur_date = get_data('logs')
|
||||
cur_date_in_log = get_data('date_in_log')
|
||||
log_path = ('main', 'log_path')
|
||||
log_path = get_config_var.get_config_var('main', 'log_path')
|
||||
|
||||
if not os.path.exists(log_path):
|
||||
os.makedirs(log_path)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
from configparser import ConfigParser, ExtendedInterpolation
|
||||
|
||||
|
||||
class GetConfigVar:
|
||||
def __init__(self):
|
||||
self.path_config = "/etc/roxy-wi/roxy-wi.cfg"
|
||||
|
|
Loading…
Reference in New Issue