[logsd] Added safety for buffer overloading