aboutsummaryrefslogtreecommitdiff
path: root/src/garage
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-07 18:02:13 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-07 18:02:13 +0200
commit14492044394a875475b2159d51234ac1e35531bf (patch)
tree32b47a80219682da216379e65733294c5440ec01 /src/garage
parent2e00809af58c142c86fae5f4bad85c4ef5e57872 (diff)
downloadgarage-14492044394a875475b2159d51234ac1e35531bf.tar.gz
garage-14492044394a875475b2159d51234ac1e35531bf.zip
Add warnings when features are not included in build
Diffstat (limited to 'src/garage')
-rw-r--r--src/garage/server.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/garage/server.rs b/src/garage/server.rs
index fb6d2279..3c96ff22 100644
--- a/src/garage/server.rs
+++ b/src/garage/server.rs
@@ -114,6 +114,11 @@ pub async fn run_server(config_file: PathBuf) -> Result<(), Error> {
));
}
+ #[cfg(not(feature = "metrics"))]
+ if config.admin_api.metrics_token.is_some() {
+ warn!("This Garage version is built without the metrics feature");
+ }
+
// Stuff runs
// When a cancel signal is sent, stuff stops