Remove \n from log messages