Skip to content

Commit

Permalink
Change some FATAL to ERROR to fix apache#40
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhangyi committed Sep 21, 2017
1 parent d921345 commit 3ed8e9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/brpc/compress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ int RegisterCompressHandler(CompressType type,
inline const CompressHandler* FindCompressHandler(CompressType type) {
int index = type;
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;
}
if (NULL == s_handler_map[index].Compress) {
Expand Down
2 changes: 1 addition & 1 deletion src/bvar/variable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ int Variable::expose_impl(const butil::StringPiece& prefix,
s_bvar_may_abort = true;
}

LOG(FATAL) << "Already exposed `" << _name << "' whose value is `"
LOG(ERROR) << "Already exposed `" << _name << "' whose value is `"
<< describe_exposed(_name) << '\'';
_name.clear();
return -1;
Expand Down

0 comments on commit 3ed8e9c

Please sign in to comment.