Fixed an issue with logging a received message