Skip to content

Commit

Permalink
updated default log path
Browse files Browse the repository at this point in the history
  • Loading branch information
riley206 committed Mar 19, 2024
1 parent bc59eaf commit 4e81a70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion services/ops/LogStatisticsAgent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"`.
Expand Down
4 changes: 1 addition & 3 deletions services/ops/LogStatisticsAgent/logstatisticsagent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4e81a70

Please sign in to comment.