upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 271a340..df7a7ef 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -500,6 +500,10 @@ pub struct Config {
500 /// Prevents connection exhaustion DoS attacks 500 /// Prevents connection exhaustion DoS attacks
501 #[arg(long, env = "NGIT_MAX_CONNECTIONS", default_value_t = 4096)] 501 #[arg(long, env = "NGIT_MAX_CONNECTIONS", default_value_t = 4096)]
502 pub max_connections: usize, 502 pub max_connections: usize,
503
504 /// Log level for application logging
505 #[arg(long, env = "NGIT_LOG_LEVEL", default_value = "info")]
506 pub log_level: String,
503} 507}
504 508
505impl Config { 509impl Config {
@@ -782,6 +786,7 @@ impl Config {
782 repository_blacklist: String::new(), 786 repository_blacklist: String::new(),
783 event_blacklist: String::new(), 787 event_blacklist: String::new(),
784 max_connections: 500, 788 max_connections: 500,
789 log_level: "debug".to_string(),
785 } 790 }
786 } 791 }
787} 792}