hide the route logs behind a feature flag

This commit is contained in:
Tamo 2024-02-05 13:29:01 +01:00 committed by Louis Dureuil
parent 80774148fd
commit 7793ba67a4
No known key found for this signature in database
6 changed files with 44 additions and 4 deletions

View file

@ -43,6 +43,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(())