fix(platform): guild.open error log and refreshSearch mesh-off early return

Log guild.open error when _openGuild fails for diagnostics filtering.
refreshSearch returns immediately on mesh-off with scope in skipped debug log.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-23 09:27:24 -04:00
co-authored by Cursor
parent 5c4eca2480
commit e959a48f1c
+7 -1
View File
@@ -1329,10 +1329,12 @@ class PearcordPlatform extends EventEmitter {
} }
} }
if (!this._searchIncludeMesh) { if (!this._searchIncludeMesh) {
this.log.debug('guild.search refresh mesh-off', { this.log.debug('guild.search refresh skipped', {
reason: 'mesh-off',
scope, scope,
queryLen: String(this._searchQuery || '').length queryLen: String(this._searchQuery || '').length
}) })
return { refreshed: false, reason: 'mesh-off', meta: this._lastSearchMeshMeta }
} }
const refreshCacheKey = this._searchResolveCacheKeyNow() const refreshCacheKey = this._searchResolveCacheKeyNow()
const refreshGuildId = this.guild.guild.id const refreshGuildId = this.guild.guild.id
@@ -5820,6 +5822,10 @@ class PearcordPlatform extends EventEmitter {
}) })
return { superseded: false } return { superseded: false }
} catch (err) { } catch (err) {
this.log.error('guild.open error', {
guildId: guildRecord.id,
err: err?.message || String(err)
})
span.fail(err) span.fail(err)
throw err throw err
} }