Reduce logs from info to debug

This commit is contained in:
Timo Kösters 2023-03-13 08:27:59 +01:00
parent a1bd348977
commit 63f787f635
No known key found for this signature in database
GPG key ID: 0B25E636FBA7E4CB
3 changed files with 26 additions and 25 deletions

View file

@ -1530,6 +1530,7 @@ impl Service {
while let Some(result) = futures.next().await {
info!("Received new result");
if let (Ok(get_keys_response), origin) = result {
info!("Result is from {origin}");
if let Ok(key) = get_keys_response.server_key.deserialize() {
let result: BTreeMap<_, _> = services()
.globals

View file

@ -40,7 +40,7 @@ use tokio::{
select,
sync::{mpsc, Mutex, Semaphore},
};
use tracing::{error, info, warn};
use tracing::{debug, error, warn};
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub enum OutgoingKind {
@ -683,9 +683,9 @@ impl Service {
where
T: Debug,
{
info!("Waiting for permit");
debug!("Waiting for permit");
let permit = self.maximum_requests.acquire().await;
info!("Got permit");
debug!("Got permit");
let response = tokio::time::timeout(
Duration::from_secs(2 * 60),
server_server::send_request(destination, request),