fixing bug that sometimes body of log messages would not be stored