Skip to content

Commit

Permalink
feat: Add brewery_jid to the jigasi detector debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Sep 25, 2024
1 parent 52ba365 commit 3479146
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import org.jxmpp.jid.Jid
*/
open class JigasiDetector(
xmppProvider: XmppProvider,
breweryJid: EntityBareJid,
val breweryJid: EntityBareJid,
private val localRegion: String? = JicofoConfig.config.localRegion
) : BaseBrewery<ColibriStatsExtension>(
xmppProvider,
Expand Down Expand Up @@ -80,6 +80,7 @@ open class JigasiDetector(

val debugState: OrderedJsonObject
get() = OrderedJsonObject().also { debugState ->
debugState["brewery_jid"] = breweryJid.toString()
instances.forEach { instance ->
val instanceJson = OrderedJsonObject().apply {
this["supports_sip"] = instance.supportsSip()
Expand Down

0 comments on commit 3479146

Please sign in to comment.