Fix logging levels (#29)

This commit is contained in:
Adrian Sadłocha 2024-07-21 16:02:12 +01:00 committed by GitHub
parent bfcb0e675e
commit c3ccf1ee2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ async fn main() -> anyhow::Result<()> {
let config = ServerConfig::from_args(snapshot_days, snapshot_versions)?; let config = ServerConfig::from_args(snapshot_days, snapshot_versions)?;
let server = Server::new(config, Box::new(SqliteStorage::new(data_dir)?)); let server = Server::new(config, Box::new(SqliteStorage::new(data_dir)?));
log::warn!("Serving on port {}", port); log::info!("Serving on port {}", port);
HttpServer::new(move || { HttpServer::new(move || {
App::new() App::new()
.wrap(Logger::default()) .wrap(Logger::default())

View file

@ -267,7 +267,7 @@ pub(crate) fn add_snapshot<'a>(
} }
} }
log::warn!("accepting snapshot for version {}", version_id); log::debug!("accepting snapshot for version {}", version_id);
txn.set_snapshot( txn.set_snapshot(
client_id, client_id,
Snapshot { Snapshot {