diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 44545b5..8b959a6 100644 --- a/src/main.rs +++ b/src/main.rs | |||
| @@ -40,9 +40,12 @@ async fn main() -> Result<()> { | |||
| 40 | // Initialize metrics if enabled | 40 | // Initialize metrics if enabled |
| 41 | let metrics = if config.metrics_enabled { | 41 | let metrics = if config.metrics_enabled { |
| 42 | info!("Metrics enabled on /metrics endpoint"); | 42 | info!("Metrics enabled on /metrics endpoint"); |
| 43 | Some(Arc::new(Metrics::new( | 43 | let m = Arc::new(Metrics::new( |
| 44 | config.metrics_connection_per_ip_abuse_threshold, | 44 | config.metrics_connection_per_ip_abuse_threshold, |
| 45 | ))) | 45 | Some(config.effective_git_data_path()), |
| 46 | )); | ||
| 47 | info!("Repository count will be updated on each metrics request"); | ||
| 48 | Some(m) | ||
| 46 | } else { | 49 | } else { |
| 47 | info!("Metrics disabled"); | 50 | info!("Metrics disabled"); |
| 48 | None | 51 | None |