Commit 3ed8e9cf authored by Zhangyi Chen's avatar Zhangyi Chen

Change some FATAL to ERROR to fix #40

parent d9213455
...@@ -49,7 +49,7 @@ int RegisterCompressHandler(CompressType type, ...@@ -49,7 +49,7 @@ int RegisterCompressHandler(CompressType type,
inline const CompressHandler* FindCompressHandler(CompressType type) { inline const CompressHandler* FindCompressHandler(CompressType type) {
int index = type; int index = type;
if (index < 0 || index >= MAX_HANDLER_SIZE) { if (index < 0 || index >= MAX_HANDLER_SIZE) {
LOG(FATAL) << "CompressType=" << type << " is out of range"; LOG(ERROR) << "CompressType=" << type << " is out of range";
return NULL; return NULL;
} }
if (NULL == s_handler_map[index].Compress) { if (NULL == s_handler_map[index].Compress) {
......
...@@ -174,7 +174,7 @@ int Variable::expose_impl(const butil::StringPiece& prefix, ...@@ -174,7 +174,7 @@ int Variable::expose_impl(const butil::StringPiece& prefix,
s_bvar_may_abort = true; s_bvar_may_abort = true;
} }
LOG(FATAL) << "Already exposed `" << _name << "' whose value is `" LOG(ERROR) << "Already exposed `" << _name << "' whose value is `"
<< describe_exposed(_name) << '\''; << describe_exposed(_name) << '\'';
_name.clear(); _name.clear();
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment