Improve logging message
Fixes regression from #1335