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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user