valory-xyz / olas-operate-app

Apache License 2.0
0 stars 0 forks source link

Excessively large agent logs #207

Open oaksprout opened 5 days ago

oaksprout commented 5 days ago

Agent log files can grow to be multiple GB. This is inconvenient for users, and inconvenient for sharing logs.

Agent logs are located in .operate/services/<bafybei...>/deployment/agent/log.txt.

truemiller commented 2 days ago

@oaksprout these logs need to be rotated/pruned by either the agent or middleware (whichever is writing them)

some agent associated logs are coming through with the cli logs that are being captured currently, these will be rotated and pruned at 10mb once https://github.com/valory-xyz/olas-operate-app/pull/218 is merged.

oaksprout commented 2 days ago

Just to clarify, @joshmlxn, #218 doesn't resolve the large log.txt file and that requires some backend work?

truemiller commented 19 hours ago

Just to clarify, @joshmlxn, #218 doesn't resolve the large log.txt file and that requires some backend work?

yes, either the middleware or the agent is writing these logs. it would be fine if the log.txt file write was turned off, and they just "proxied" through the cli by printing as required, then the logs would be rotated/pruned as they are in the implementation for #218