improve log messages in both chat and web packages