Add logging for snapshotting.