bugfix: logs truncated at new lines