`[]` around variables in log and error messages