Merge pull request #2708 from Lucwousin/sentry-gunnoe-gek

client: Fix sentry, improve logging
This commit is contained in:
Lucwousin
2020-06-23 20:51:48 +02:00
committed by GitHub
5 changed files with 16 additions and 17 deletions

View File

@@ -124,16 +124,10 @@ tasks {
inputs.properties(tokens) inputs.properties(tokens)
from("src/main/resources") { from("src/main/resources/")
include("sentry.properties") include("**/*.properties")
}
into("${buildDir}/resources/main") into("${buildDir}/resources/main")
from("src/main/resources/net/runelite/client") {
include("open.osrs.properties")
}
into("${buildDir}/resources/main/net/runelite/client")
filter(ReplaceTokens::class, "tokens" to tokens) filter(ReplaceTokens::class, "tokens" to tokens)
filteringCharset = "UTF-8" filteringCharset = "UTF-8"
} }

View File

@@ -1,6 +1,7 @@
package net.runelite.client.util; package net.runelite.client.util;
import io.reactivex.rxjava3.subjects.PublishSubject; import io.reactivex.rxjava3.subjects.PublishSubject;
import java.io.InputStream;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@@ -48,11 +49,14 @@ public class Groups extends ReceiverAdapter
{ {
this.openOSRSConfig = openOSRSConfig; this.openOSRSConfig = openOSRSConfig;
this.channel = new JChannel(RuneLite.class.getResourceAsStream("/udp.xml")) try (final InputStream is = RuneLite.class.getResourceAsStream("/udp-openosrs.xml"))
.setName(RuneLite.uuid) {
.setReceiver(this) this.channel = new JChannel(is)
.setDiscardOwnMessages(true) .setName(RuneLite.uuid)
.connect("openosrs"); .setReceiver(this)
.setDiscardOwnMessages(true)
.connect("openosrs");
}
eventBus.subscribe(ClientShutdown.class, this, (e) -> { eventBus.subscribe(ClientShutdown.class, this, (e) -> {
Future<Void> f = close(); Future<Void> f = close();

View File

@@ -68,6 +68,6 @@
<appender-ref ref="Sentry" /> <appender-ref ref="Sentry" />
</root> </root>
<logger name="org.pf4j.AbstractPluginManager" level="OFF"/> <logger name="org.pf4j.AbstractPluginManager" level="WARN"/>
<logger name="org.jgroups" level="ERROR"/> <logger name="org.jgroups" level="WARN"/>
</configuration> </configuration>

View File

@@ -1,3 +1,3 @@
dsn=https://fa31d674e44247fa93966c69a903770f@sentry.io/1811856 dsn=https://fa31d674e44247fa93966c69a903770f@sentry.io/1811856
release=@open.osrs.version@ release=@open.osrs.version@
stacktrace.app.packages=stacktrace.app.packages=net.runelite.client stacktrace.app.packages=net.runelite,com.openosrs

View File

@@ -6,7 +6,8 @@
<config xmlns="urn:org:jgroups" <config xmlns="urn:org:jgroups"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd"> xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd"
version="4.2.4.Final">
<UDP <UDP
bind_addr="127.0.0.1" bind_addr="127.0.0.1"
mcast_port="${jgroups.udp.mcast_port:45588}" mcast_port="${jgroups.udp.mcast_port:45588}"