Limit initial log output on connection
thehutman opened this issue ยท 2 comments
When first connecting to a server that's been up a while, the client gets a FULL copy of the log made since the server started. Maybe only output the last so many lines (maybe make it configurable). Otherwise, it seems to hang up the server while sending the log stream over the network. On busy servers with some monster logs, it can take a while. The app also seems to be storing EVERY log message ever made -- wasting RAM.
Perhaps change the ArrayList for messages to be a circular buffer (i.e. CircularFifoBuffer) with a default size as chosen by the config?
Really sorry this took me so long. There is now a config variable called "logsize" which defines the maximum size of the log which is sent to the client. Please report any bugs you encounter. Enjoy!
(This will be released in v2.5.0, which might take a while to get approved, as I am uploading it right now)