hide the route logs behind a feature flag

This commit is contained in:
Tamo
2024-02-05 13:29:01 +01:00
parent e2b2c55c79
commit 1ab9d9bdf2
6 changed files with 44 additions and 4 deletions

View File

@ -56,6 +56,20 @@ impl RoFeatures {
}
}
pub fn check_logs_route(&self) -> Result<()> {
if self.runtime.logs_route {
Ok(())
} else {
Err(FeatureNotEnabledError {
disabled_action: "Getting logs",
feature: "logsRoute",
/// Update the discussion link
issue_link: "https://github.com/meilisearch/product/discussions/625",
}
.into())
}
}
pub fn check_vector(&self, disabled_action: &'static str) -> Result<()> {
if self.runtime.vector_store {
Ok(())