diff --git a/code/segmentedtickerplant/stplog.q b/code/segmentedtickerplant/stplog.q index 03717fe07..06a9730ab 100644 --- a/code/segmentedtickerplant/stplog.q +++ b/code/segmentedtickerplant/stplog.q @@ -276,6 +276,11 @@ init:{[dbname] // add the info to the meta table .stpm.updmeta[multilog][`open;logtabs;.z.p+.eodtime.dailyadj]; ] + + // set loghandles to null if sctp is not creating logs + if[.sctp.chainedtp and not .sctp.loggingmode=`create; + `..loghandles set t! (count t) # enlist (::) + ] }; \d . @@ -289,4 +294,4 @@ init:{[dbname] .lg.o[`stpexit;"Closing off log files"]; .stpm.updmeta[.stplg.multilog][`close;.stpps.t;.z.p]; .stplg.closelog each .stpps.t; - } \ No newline at end of file + }