fix: quiet noisy store poll and skill-resolver info logs
Raise checkForChanges slow-poll warn threshold from 100ms to 750ms so warnings only fire when cycles approach the 1s poll interval, and route skill-resolver info diagnostics through log() instead of warn(). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
5
.changeset/quiet-noisy-store-and-skill-logs.md
Normal file
5
.changeset/quiet-noisy-store-and-skill-logs.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Reduce log noise: bump `checkForChanges` slow-poll warn threshold from 100ms to 750ms (the 1s poll interval + multiple SQLite queries routinely exceed 100ms without indicating a real problem), and route skill-resolver `info` diagnostics (e.g. "Requested skill: …") through `log()` instead of `warn()` so informational messages no longer surface as warnings.
|
||||
@@ -4580,10 +4580,10 @@ export class TaskStore extends EventEmitter<TaskStoreEvents> {
|
||||
}
|
||||
|
||||
const elapsed = Date.now() - startTime;
|
||||
if (elapsed > 100) {
|
||||
if (elapsed > 750) {
|
||||
storeLog.warn("checkForChanges took longer than expected", {
|
||||
elapsedMs: elapsed,
|
||||
thresholdMs: 100,
|
||||
thresholdMs: 750,
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
@@ -471,7 +471,10 @@ export function createSkillsOverrideFromSelection(
|
||||
if (newDiagnostics.length > 0) {
|
||||
const _purpose = sessionPurpose ? `[${sessionPurpose}]` : "skills";
|
||||
for (const diag of newDiagnostics) {
|
||||
piLog.warn(`[skills] ${diag.type}: ${diag.message}`);
|
||||
const msg = `[skills] ${diag.type}: ${diag.message}`;
|
||||
if (diag.type === "error") piLog.error(msg);
|
||||
else if (diag.type === "warning") piLog.warn(msg);
|
||||
else piLog.log(msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user