Skip to content

Commit

Permalink
change log(fatal) to log(error)
Browse files Browse the repository at this point in the history
  • Loading branch information
jievince committed Apr 4, 2023
1 parent 653bfa7 commit 5ce04ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/graph/optimizer/rule/PushEFilterDownRule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ std::string PushEFilterDownRule::toString() const {
ret = EdgePropertyExpression::make(pool, std::move(edgeNameResult).value(), exp->prop());
break;
default:
DLOG(FATAL) << "Unexpected expr: " << exp->kind();
DLOG(ERROR) << "Unexpected expr: " << exp->kind();
}
return ret;
}
Expand Down
6 changes: 3 additions & 3 deletions src/graph/optimizer/rule/PushFilterDownNodeRule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ StatusOr<OptRule::TransformResult> PushFilterDownNodeRule::transform(
auto *append = static_cast<const AppendVertices *>(node);
vFilter = append->vFilter()->clone();
} else {
DLOG(FATAL) << "Unsupported node kind: " << node->kind();
DLOG(ERROR) << "Unsupported node kind: " << node->kind();
return TransformResult::noTransform();
}
auto visitor = graph::ExtractFilterExprVisitor::makePushGetVertices(pool);
Expand Down Expand Up @@ -83,7 +83,7 @@ StatusOr<OptRule::TransformResult> PushFilterDownNodeRule::transform(
append->setVertexFilter(remainedExpr);
append->setFilter(vFilter);
} else {
DLOG(FATAL) << "Unsupported node kind: " << newExplore->kind();
DLOG(ERROR) << "Unsupported node kind: " << newExplore->kind();
return TransformResult::noTransform();
}

Expand Down Expand Up @@ -111,7 +111,7 @@ bool PushFilterDownNodeRule::match(OptContext *octx, const MatchedResult &matche
return false;
}
} else {
DLOG(FATAL) << "Unexpected node kind: " << node->kind();
DLOG(ERROR) << "Unexpected node kind: " << node->kind();
return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/graph/optimizer/rule/UnionAllIndexScanBaseRule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ StatusOr<TransformResult> UnionAllIndexScanBaseRule::transform(OptContext* ctx,
break;
}
default:
DLOG(FATAL) << "Invalid expression kind: " << static_cast<uint8_t>(conditionType);
DLOG(ERROR) << "Invalid expression kind: " << static_cast<uint8_t>(conditionType);
return TransformResult::noTransform();
}

Expand Down

0 comments on commit 5ce04ca

Please sign in to comment.