mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'xMAC94x/logspam' into 'master'
remove spamming of the logs See merge request veloren/veloren!2086
This commit is contained in:
commit
90aa671e42
@ -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())
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user