remove spamming of the logs

This commit is contained in:
Marcel Märtens 2021-04-08 23:52:12 +02:00
parent 0eecc61ddf
commit 1a9425526b
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ where
let base_exceptions = |env: EnvFilter| {
env.add_directive("dot_vox::parser=warn".parse().unwrap())
.add_directive("gfx_device_gl=warn".parse().unwrap())
.add_directive("veloren_common::trade=info".parse().unwrap())
.add_directive("veloren_world::sim=info".parse().unwrap())
.add_directive("veloren_world::civ=info".parse().unwrap())
.add_directive("hyper=info".parse().unwrap())

View File

@ -1179,7 +1179,6 @@ impl<'a> AgentData<'a> {
let balance0: f32 =
prices.balance(&pending.offers, &inventories, 1 - who, true);
let balance1: f32 = prices.balance(&pending.offers, &inventories, who, false);
tracing::debug!("UpdatePendingTrade({}, {})", balance0, balance1);
if balance0 >= balance1 {
// If the trade is favourable to us, only send an accept message if we're
// not already accepting (since otherwise, spamclicking the accept button
@ -1192,6 +1191,7 @@ impl<'a> AgentData<'a> {
tradeid,
TradeAction::Accept(pending.phase),
));
tracing::trace!(?tradeid, ?balance0, ?balance1, "Accept Pending Trade");
}
} else {
if balance1 > 0.0 {