diff options
Diffstat (limited to 'base/vlog.cc')
-rw-r--r-- | base/vlog.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/base/vlog.cc b/base/vlog.cc index aca8d0f..8903f39 100644 --- a/base/vlog.cc +++ b/base/vlog.cc @@ -36,11 +36,12 @@ VlogInfo::VlogInfo(const std::string& v_switch, typedef std::pair<std::string, std::string> KVPair; int vlog_level = 0; - if (!v_switch.empty() && base::StringToInt(v_switch, &vlog_level)) { - SetMaxVlogLevel(vlog_level); - } else { - LOG(WARNING) << "Parsed v switch \"" - << v_switch << "\" as " << vlog_level; + if (!v_switch.empty()) { + if (base::StringToInt(v_switch, &vlog_level)) { + SetMaxVlogLevel(vlog_level); + } else { + LOG(WARNING) << "Could not parse v switch \"" << v_switch << "\""; + } } std::vector<KVPair> kv_pairs; |