feat(platform): log guild.search setSearch mesh-on at debug

Records scope and query length when includeMesh is toggled on.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-23 09:36:40 -04:00
co-authored by Cursor
parent e959a48f1c
commit 66ec605383
+7
View File
@@ -1229,6 +1229,13 @@ class PearcordPlatform extends EventEmitter {
includeMesh: false includeMesh: false
}) })
} }
if (includeMesh !== undefined && nextMesh) {
this.log.debug('guild.search setSearch mesh-on', {
scope: nextScope,
queryLen: nextQuery.length,
includeMesh: true
})
}
this._invalidateSearchCache() this._invalidateSearchCache()
if (this._searchQuery.length >= 2) { if (this._searchQuery.length >= 2) {
void this._recordSearchRecent(this._searchQuery).catch(() => {}) void this._recordSearchRecent(this._searchQuery).catch(() => {})