|
From: Browne, S. <Sam...@cm...> - 2020-07-02 08:28:20
|
It looks like setting NonStopSession=Y in the config still causes misleading logging such as:
2020.07.02T01:58:55.704-0500 [logLvl=INFO] [thr=NioProcessor-2 ctgy='quickfixj.event.FIX.4.4:/STP->IEYE: ' - Session FIX.4.4:/STP->IEYE schedule is daily, 00:00:00-UTC - 00:00:00-UTC
Caused by the passing of NOT_SET in the quickfix.DefaultSessionSchedule.DefaultSessionSchedule(SessionSettings, SessionID) constructor:
if (isNonStopSession) {
isWeekdaySession = false;
weekdayOffsets = new int[0];
startTime = endTime = new TimeEndPoint(NOT_SET, 0, 0, 0, defaultTimeZone);
return;
} else {
isWeekdaySession = settings.isSetting(sessionID, Session.SETTING_WEEKDAYS);
}
The toString calls quickfix.DefaultSessionSchedule.formatTimeInterval(StringBuilder, TimeInterval, SimpleDateFormat, boolean) which doesn’t take isNonStopSession into account and instead relies on the startDay/endDay having been set to indicate a non daily session:
if (isWeekdaySession) {
try {
for (int i = 0; i < weekdayOffsets.length; i++) {
buf.append(DayConverter.toString(weekdayOffsets[i]));
buf.append(", ");
}
} catch (ConfigError ex) {
// this can't happen as these are created using DayConverter.toInteger
}
} else if (!isDailySession()) {
buf.append("weekly, ");
formatDayOfWeek(buf, startTime.getDay());
buf.append(" ");
} else {
buf.append("daily, ");
}
private boolean isDailySession() {
return !isSet(startTime.getDay()) && !isSet(endTime.getDay());
}
Regards,
Sam
________________________________
NOTICE: This message, and any attachments, are for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at E-Communication Disclaimer<http://www.cmegroup.com/tools-information/communications/e-communication-disclaimer.html>. If you are not the intended recipient, please delete this message. CME Group and its subsidiaries reserve the right to monitor all email communications that occur on CME Group information systems.
|