chore(minecraft): remove spammy logging

This commit is contained in:
Rin
2026-02-18 11:12:03 +08:00
committed by Neko Ayaka
parent 8ac2f5c354
commit af968b5bc4
5 changed files with 8 additions and 26 deletions
@@ -261,12 +261,6 @@ export class RuleEngine {
timestamp: Date.now(),
})
this.deps.logger.withFields({
ruleName: rule.name,
signalType: signal.type,
description: signal.description,
}).log('RuleEngine: signal emitted')
// Emit as child of source event
this.deps.eventBus.emitChild(sourceEvent, {
type: `signal:${signal.type}`,
@@ -277,9 +277,9 @@ export class MineflayerPerceptionCollector {
if (now - this.lastStatsAt < 2000)
return
this.deps.logger.withFields({
...this.stats,
}).log('MineflayerPerceptionCollector: stats')
// this.deps.logger.withFields({
// ...this.stats,
// }).log('MineflayerPerceptionCollector: stats')
this.lastStatsAt = now
this.stats = {}
@@ -232,11 +232,11 @@ export class SaliencyDetector {
* Emit a perception signal via callback
*/
private emitSignal(signal: PerceptionSignal): void {
this.deps.logger.withFields({
type: signal.type,
desc: signal.description,
meta: signal.metadata,
}).log('SaliencyDetector: emit')
// this.deps.logger.withFields({
// type: signal.type,
// desc: signal.description,
// meta: signal.metadata,
// }).log('SaliencyDetector: emit')
this.deps.onAttention(signal)
}
@@ -61,12 +61,6 @@ export class ReflexManager {
const signal = event.payload
const now = Date.now()
// Create log message (can be throttled later if too spammy)
this.deps.logger.withFields({
type: signal.type,
description: signal.description,
}).log('ReflexManager: signal received')
// Update Context
this.runtime.getContext().updateNow(now)
this.runtime.getContext().updateAttention({
@@ -117,12 +117,6 @@ export class ReflexRuntime {
this.activeBehaviorId = null
}
this.deps.logger.withFields({
mode: this.mode,
behavior: best.behavior.id,
score: best.score,
}).log('ReflexRuntime: selected')
return best.behavior.id
}
catch (err) {