Added log messages to the snapshot handling code