Skip to content

Commit 49e42a7

Browse files
committed
fix logging related to issue robaho#23
2 parents 3e46173 + e7d678c commit 49e42a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/robaho/net/httpserver/ServerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public void run() {
348348
try {
349349
acceptConnection(s);
350350
} catch (IOException t) {
351-
logger.log(Level.ERROR, "Dispatcher Exception", t);
351+
logger.log(Level.WARNING, "unable to accept connection", t);
352352
try {
353353
s.close();
354354
} catch (IOException ex) {
@@ -360,7 +360,7 @@ public void run() {
360360
}
361361
} catch (IOException e) {
362362
if (!isFinishing()) {
363-
logger.log(Level.ERROR, "Dispatcher Exception, terminating", e);
363+
logger.log(Level.ERROR, "socket accept failed", e);
364364
}
365365
return;
366366
}

0 commit comments

Comments
 (0)