Fix a bug in snapshot logging causing bad filename being logged.