mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
hide the route logs behind a feature flag
This commit is contained in:
parent
80774148fd
commit
7793ba67a4
6 changed files with 44 additions and 4 deletions
|
@ -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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue