Add clarifying comment, stylistic consistency

pull/14986/head
ncteisen 7 years ago
parent 3910659822
commit 9d0c246294
  1. 3
      src/core/lib/debug/trace.cc

@ -55,7 +55,8 @@ bool TraceFlagList::Set(const char* name, bool enabled) {
found = true;
}
}
if (!found && strcmp(name, "")) {
// check for unknowns, but ignore "", to allow to GRPC_TRACE=
if (!found && 0 != strcmp(name, "")) {
gpr_log(GPR_ERROR, "Unknown trace var: '%s'", name);
return false; /* early return */
}

Loading…
Cancel
Save