Chromium Code Reviews| Index: chromeos/network/onc/onc_validator.cc |
| diff --git a/chromeos/network/onc/onc_validator.cc b/chromeos/network/onc/onc_validator.cc |
| index 91cbd7af4bc5a6055317fec2f74443e4aa3c4e46..dd3f7ee4bd3699f747e96bf4cff3a9204239d3e3 100644 |
| --- a/chromeos/network/onc/onc_validator.cc |
| +++ b/chromeos/network/onc/onc_validator.cc |
| @@ -403,13 +403,14 @@ bool Validator::RequireField(const base::DictionaryValue& dict, |
| const std::string& field_name) { |
| if (dict.HasKey(field_name)) |
| return true; |
| - error_or_warning_found_ = true; |
| std::string message = MessageHeader() + "The required field '" + field_name + |
| "' is missing."; |
| - if (error_on_missing_field_) |
| + if (error_on_missing_field_) { |
| + error_or_warning_found_ = true; |
| LOG(ERROR) << message; |
| - else |
| - LOG(WARNING) << message; |
| + } else { |
| + VLOG(1) << message; |
| + } |
|
stevenjb
2014/11/04 19:32:18
This doesn't seem to me like it should be a "warni
|
| return false; |
| } |