From 55d7eddb8ec350fdf34ca3f328c6748993b60511 Mon Sep 17 00:00:00 2001 From: etennoQ Date: Tue, 2 Mar 2021 11:15:46 +0000 Subject: [PATCH] set loghandles to be null when sctp is not creating own logs --- code/segmentedtickerplant/stplog.q | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 + }