Skip to content

Commit

Permalink
Fixed log severity (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
intuibase authored Sep 13, 2024
1 parent 994c1ae commit e2c8782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void callPostHook(AutoZval &hook, zval *return_value, zend_object *exception, ze
// thre is no way to distinguish if posthook returned NULL, becuase in PHP functions are always returning NULL, even if there is no return keyword
// in that case we can only try to overwrite return value for posthooks with return value type specified explicitly
if (!(fcc.function_handler->op_array.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) || (ZEND_TYPE_PURE_MASK(fcc.function_handler->common.arg_info[-1].type) & MAY_BE_VOID)) {
ELOG_DEBUG(EAPM_GL(logger_), "callPostHook hook doesn't explicitly specify return type other than void");
ELOG_TRACE(EAPM_GL(logger_), "callPostHook hook doesn't explicitly specify return type other than void");
return;
}

Expand Down
2 changes: 1 addition & 1 deletion prod/native/libcommon/code/RequestScope.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class RequestScope {
}

bool handleError(int type, std::string_view errorFilename, uint32_t errorLineno, std::string_view message) {
ELOG_INFO(log_, "RequestScope::handleError type: %d fn: %s:%d msg: %s\n", type, errorFilename.data(), errorLineno, message.data());
ELOG_DEBUG(log_, "RequestScope::handleError type: %d fn: %s:%d msg: %s\n", type, errorFilename.data(), errorLineno, message.data());

bridge_->callPHPSideErrorHandler(type, errorFilename, errorLineno, message);

Expand Down

0 comments on commit e2c8782

Please sign in to comment.