BUG fix for bug MDL-44369.

Added logging for all events mentioned in the bug report.