Fix freshly introduced bug with logging