logger: regain some ram

Signed-off-by: Lens-F <tnoah12@gmail.com>