We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72f2f59 commit f98c8ebCopy full SHA for f98c8eb
1 file changed
dogstatsd-http-forwarder/src/main/java/com/datadoghq/dogstatsd/http/forwarder/Forwarder.java
@@ -70,12 +70,14 @@ public Forwarder(
70
/** Runs the forwarding loop, delivering queued payloads until the thread is interrupted. */
71
@Override
72
public void run() {
73
- try {
74
- while (true) {
+ while (true) {
+ try {
75
runOnce(queue.next());
76
+ } catch (InterruptedException e) {
77
+ return;
78
+ } catch (Throwable t) {
79
+ logger.log(Level.SEVERE, "unexpected error in forwarder loop", t);
80
}
- } catch (InterruptedException e) {
- return;
81
82
83
0 commit comments