Fix oops in logging