Hoektronics/BotQueue

log files of death

Closed this issue · 3 comments

inside bumblebee, printcore.log and info.log are never ending, log very often, and can get extremely massive. Some way to organize them or keep them a reasonable size is necessary.

(448GB!)
giant-logs

That's crazy... Okay, so there's two ways to fix this. The first is to not log as much pointless stuff. The other, which should be implemented anyway, is to delete old logs.

In the mean time, I think it would be best to just delete those files so you can keep printing.

It's pretty difficult for someone who doesnt understand the inner workings of Botqueue to know how to clean this out. How about a default time limit that it deletes everything 30days or older, something like that? If the point of Botqueue is to seamlessly run a large array of machines, manually cleaning out a log file does not make much sense.

I've improved this a little bit by removing many messages that would just fill the log files to death. https://github.com/Jnesselr/BotQueue/commit/c062b6079176086c9301e2697a984d166cc37379

Those aren't all of the messages, and it isn't a permanent fix, but it definitely helps. Sadly, this is implemented on my 0.5X-dev branch, and isn't in botqueue.com yet.

Also, I still need to have it remove the logs if they get past a certain point. I'm thinking 25 mb before cycling the log file?

Also, I haven't changed anything that would affect the printcore log yet.