From 4e81a702b333577c031a44d54a893ed3f2cc9296 Mon Sep 17 00:00:00 2001 From: riley206 Date: Tue, 19 Mar 2024 11:52:01 -0700 Subject: [PATCH] updated default log path --- services/ops/LogStatisticsAgent/README.md | 2 +- services/ops/LogStatisticsAgent/logstatisticsagent/agent.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/services/ops/LogStatisticsAgent/README.md b/services/ops/LogStatisticsAgent/README.md index f444d60d8d..9b7593f093 100644 --- a/services/ops/LogStatisticsAgent/README.md +++ b/services/ops/LogStatisticsAgent/README.md @@ -10,7 +10,7 @@ which may be an indication of some sort of failure or breach. The Log Statistics agent has 4 configuration parameters, all of which are required: -- `file_path`: The file path to the log file. If left as `null`, defaults to `'volttron.log'` located within your VOLTTRON_HOME environment variable. +- `file_path`: The file path to the log file. If left as `null`, defaults to "/home/volttron/volttron.log". - `analysis_interval_secs`: The interval in seconds between publishes of the size delta statistic to the message bus. If left as `null`, defaults to 60 seconds. - `publish_topic`: Used to specify a topic to publish log statistics to which does not get captured by the historian framework (topics not prefixed by any of: "datalogger", "record", "analysis", "devices"). If left as `null`, defaults to `"platform/log_statistics"`. diff --git a/services/ops/LogStatisticsAgent/logstatisticsagent/agent.py b/services/ops/LogStatisticsAgent/logstatisticsagent/agent.py index 8afc30ddad..5223858985 100644 --- a/services/ops/LogStatisticsAgent/logstatisticsagent/agent.py +++ b/services/ops/LogStatisticsAgent/logstatisticsagent/agent.py @@ -72,10 +72,8 @@ def __init__(self, config: dict, **kwargs): self.last_std_dev_time = get_aware_utc_now() - volttron_home = get_home() - self.default_config = { - "file_path": f"{volttron_home}/volttron.log", + "file_path": "/home/volttron/volttron.log", "analysis_interval_sec": 60, "publish_topic": "platform/log_statistics", "historian_topic": "analysis/log_statistics"