Improved logging, UI tweaks.
This commit is contained in:
+17
-1
@@ -107,6 +107,18 @@ impl Mailing {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "ssr")]
|
||||
#[derive(Deserialize)]
|
||||
pub struct Logging {
|
||||
severity: String
|
||||
}
|
||||
|
||||
#[cfg(feature = "ssr")]
|
||||
impl Logging {
|
||||
pub fn severity(&self) -> &str {
|
||||
&self.severity
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "ssr")]
|
||||
#[derive(Deserialize)]
|
||||
@@ -114,7 +126,8 @@ pub struct Configuration {
|
||||
session: Session,
|
||||
network: Network,
|
||||
database: Database,
|
||||
mailing: Mailing
|
||||
mailing: Mailing,
|
||||
logging: Logging
|
||||
}
|
||||
|
||||
#[cfg(feature = "ssr")]
|
||||
@@ -131,6 +144,9 @@ impl Configuration {
|
||||
pub fn mailing(&self) -> &Mailing {
|
||||
&self.mailing
|
||||
}
|
||||
pub fn logging(&self) -> &Logging {
|
||||
&self.logging
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "ssr")]
|
||||
|
||||
Reference in New Issue
Block a user