mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 19:24:26 +03:00
sync code
This commit is contained in:
@@ -42,6 +42,8 @@ Context::getAllStrings(const EnvKeyAttr::ParamAttr ¶m) const
|
||||
return result;
|
||||
}
|
||||
|
||||
static const AlertInfo alert(AlertTeam::CORE, "environment contexts");
|
||||
|
||||
const std::string
|
||||
Context::convertToString(MetaDataType type)
|
||||
{
|
||||
@@ -58,9 +60,9 @@ Context::convertToString(MetaDataType type)
|
||||
case MetaDataType::Direction: return "direction";
|
||||
case MetaDataType::Email: return "email";
|
||||
case MetaDataType::COUNT:
|
||||
dbgAssert(false) << "COUNT is not a valid meta data type";
|
||||
dbgAssert(false) << alert << "COUNT is not a valid meta data type";
|
||||
}
|
||||
dbgAssert(false) << "Reached impossible case with type=" << static_cast<int>(type);
|
||||
dbgAssert(false) << alert << "Reached impossible case with type=" << static_cast<int>(type);
|
||||
return "";
|
||||
}
|
||||
|
||||
|
@@ -213,8 +213,9 @@ Environment::Impl::registerContext(Context *ptr)
|
||||
void
|
||||
Environment::Impl::unregisterContext(Context *ptr)
|
||||
{
|
||||
dbgAssert(active_contexts.first.back() == ptr) <<
|
||||
"Contexts are supposed to unregister in reverse order to their registration";
|
||||
dbgAssert(active_contexts.first.back() == ptr)
|
||||
<< AlertInfo(AlertTeam::CORE, "environment contexts")
|
||||
<< "Contexts are supposed to unregister in reverse order to their registration";
|
||||
active_contexts.first.pop_back();
|
||||
}
|
||||
|
||||
|
@@ -97,7 +97,7 @@ Span::convertSpanContextTypeToString(ContextType type)
|
||||
return "Follows from";
|
||||
}
|
||||
}
|
||||
dbgAssert(false) << "Span context not supported";
|
||||
dbgAssert(false) << AlertInfo(AlertTeam::CORE, "tracing") << "Span context not supported";
|
||||
return string();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user