[IMP] Fix creation of empty lines in logs