fix(search): log mesh-off when setSearch query unchanged

Emit guild.search unchanged mesh-off at debug when duplicate search
runs with mesh disabled to distinguish from mesh-on no-ops.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-23 08:39:04 -04:00
co-authored by Cursor
parent 0fb10c4927
commit dc3ffd78f7
+9 -6
View File
@@ -1186,12 +1186,15 @@ class PearcordPlatform extends EventEmitter {
}
}
}
this.log.debug('guild.search unchanged', {
query: this._searchQuery,
scope: this._searchScope,
includeMesh: this._searchIncludeMesh,
cached: !!this._lastSearchFromCache
})
this.log.debug(
this._searchIncludeMesh ? 'guild.search unchanged' : 'guild.search unchanged mesh-off',
{
query: this._searchQuery,
scope: this._searchScope,
includeMesh: this._searchIncludeMesh,
cached: !!this._lastSearchFromCache
}
)
return {
query: this._searchQuery,
scope: this._searchScope,