Merge branch 'xMAC94x/logspam' into 'master'

remove spamming of the logs

See merge request veloren/veloren!2086
This commit is contained in:
Marcel 2021-04-09 01:06:23 +00:00
commit 90aa671e42
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 {