ChainMovers / suibase

Sui development environment and cookbook.
https://suibase.io
Apache License 2.0
35 stars 6 forks source link

Reduce suibase-daemon.log size #89

Open mario4tier opened 6 months ago

mario4tier commented 6 months ago

Goal: Periodically purge a suibase log file to avoid large disk usage.

( ~/suibase/workdirs/common/logs/suibase-daemon.log )

Problem Statement

There is currently a bug with Mysten Labs devnet preventing websocket subscriptions to work. This cause an error to be log periodically (for every attempt done every 30 seconds).

suibase-daemon.log is now ~400MBytes after running for ~two weeks with these error logs.

mario4tier commented 5 months ago

Should be implemented with simply integrating this: https://docs.rs/file-rotate/latest/file_rotate/

I like the following: