Skip to content

Commit 1ce8c21

Browse files
Copilotchrjohn
andcommitted
Replace logError() with Session.getLog() in SessionConnector
Co-authored-by: chrjohn <[email protected]>
1 parent eeaaedb commit 1ce8c21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

quickfixj-core/src/main/java/quickfix/mina/SessionConnector.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import quickfix.Connector;
2828
import quickfix.ExecutorFactory;
2929
import quickfix.FieldConvertError;
30+
import quickfix.LogUtil;
3031
import quickfix.Session;
3132
import quickfix.SessionFactory;
3233
import quickfix.SessionID;
@@ -243,7 +244,7 @@ protected void logoutAllSessions(boolean forceDisconnect) {
243244
try {
244245
session.logout();
245246
} catch (Throwable e) {
246-
logError(session.getSessionID(), null, "Error during logout", e);
247+
LogUtil.logThrowable(session.getLog(), "Error during logout", e);
247248
}
248249
}
249250

@@ -255,7 +256,7 @@ protected void logoutAllSessions(boolean forceDisconnect) {
255256
session.disconnect("Forcibly disconnecting session", false);
256257
}
257258
} catch (Throwable e) {
258-
logError(session.getSessionID(), null, "Error during disconnect", e);
259+
LogUtil.logThrowable(session.getLog(), "Error during disconnect", e);
259260
}
260261
}
261262
} else {
@@ -347,7 +348,7 @@ public void run() {
347348
try {
348349
session.next();
349350
} catch (IOException e) {
350-
logError(session.getSessionID(), null, "Error in session timer processing", e);
351+
LogUtil.logThrowable(session.getLog(), "Error in session timer processing", e);
351352
}
352353
}
353354
} catch (Throwable e) {

0 commit comments

Comments
 (0)