Modifying the Usage Description of Log_dir

This commit is contained in:
zhoupengcheng
2024-03-26 17:34:57 +08:00
parent 7308202c46
commit c4efbdd3a6
5 changed files with 12 additions and 11 deletions

View File

@@ -532,8 +532,10 @@ tuning为系统进行离线调优时需要用到的参数信息。
[log]
# either "debug", "info", "warn", "error", "critical", default is "info"
level = info
# you can set log_dir to specify the location where the log is written. default location is /var/log/messages
# log_dir = "/var/log/atune"
# you can set log_dir to specify the location where the log is written,specified directory can only be under /var/log/atune,default location is /var/log/messages
# log_dir = /var/log/atune
#################################### monitor ###############################
[monitor]
@@ -632,8 +634,9 @@ A-Tune engine配置文件/etc/atuned/engine.cnf的配置项说明如下
[log]
# either "debug", "info", "warn", "error", "critical", default is "info"
level = info
# you can set log_dir to specify the location where the log is written. default location is /var/log/messages
# log_dir = "/var/log/atune"
# you can set log_dir to specify the location where the log is written,specified directory can only be under /var/log/atune,default location is /var/log/messages
# log_dir = /var/log/atune
#################################### database ###############################
[database]

View File

@@ -101,8 +101,6 @@ class AtunedConfig:
ENGINE_CERT_PATH + 'client.key')
AtunedConfig.level = get_or_default(config, 'log', 'level', 'info')
AtunedConfig.log_dir = get_or_default(config, 'log', 'log_dir', None)
if AtunedConfig.log_dir:
AtunedConfig.log_dir.strip('"')
AtunedConfig.module = get_or_default(config, 'monitor', 'module', 'mem_topo, cpu_topo')
AtunedConfig.disk = get_or_default(config, 'system', 'disk', 'sda')
AtunedConfig.network = get_or_default(config, 'system', 'network', 'enp5s0')

View File

@@ -62,8 +62,6 @@ class EngineConfig:
'tlsengineserverkeyfile', ENGINE_CERT_PATH + 'server.key')
EngineConfig.level = get_or_default(config, 'log', 'level', 'info')
EngineConfig.log_dir = get_or_default(config, 'log', 'level', None)
if EngineConfig.log_dir:
EngineConfig.log_dir.strip('"')
EngineConfig.db_enable = get_or_default_bool(config, 'database', 'db_enable', False)
if EngineConfig.db_enable:
EngineConfig.database = get_or_default(config, 'database', 'database', 'PostgreSQL')

View File

@@ -72,8 +72,8 @@ tlsengineclientkeyfile = /etc/atuned/engine_certs/client.key
[log]
# either "debug", "info", "warn", "error", "critical", default is "info"
level = info
# you can set log_dir to specify the location where the log is written. default location is /var/log/messages
# log_dir = "/var/log/atune"
# you can set log_dir to specify the location where the log is written,specified directory can only be under /var/log/atune,default location is /var/log/messages
# log_dir = /var/log/atune
#################################### monitor ###############################
[monitor]

View File

@@ -28,6 +28,8 @@ tlsengineserverkeyfile = /etc/atuned/engine_certs/server.key
[log]
# either "debug", "info", "warn", "error", "critical", default is "info"
level = info
# you can set log_dir to specify the location where the log is written,specified directory can only be under /var/log/atune,default location is /var/log/messages
# log_dir = /var/log/atune
#################################### database ###############################
[database]
@@ -78,4 +80,4 @@ net_stat_rxkbs = 70
net_stat_txkbs = 70
# disk I/OF
storage_stat_util = 70
storage_stat_util = 70