moocowmoo / dashman

DASH wallet/daemon management utilities
MIT License
52 stars 38 forks source link

Why does `dashman restart` delete debug.log? #24

Open Nutomic opened 7 years ago

Nutomic commented 7 years ago

This is quite annoying if dash crashes and you want to bring it back up asap. You have to remember to copy debug.log, or all the info will be lost. Is there any reason to delete this file? If yes, it should be copied to a different location instead.

moocowmoo commented 7 years ago

Housekeeping is the rationale. Debug logs rarely contain useful debug information when the daemon is not in debug mode and grow significantly during runtime. Maybe I'll take free space into consideration here. Leaving open.

If you want to start dashd asap, just run .dashcore/dashd -- much faster than waiting on dashman to run through it's checks.