Skip to content

Commit

Permalink
Default params (#630)
Browse files Browse the repository at this point in the history
* setting default params in finspace

* adding clarifying comment

* fix typo

Co-authored-by: Jonathon McMurray <[email protected]>

---------

Co-authored-by: Jonathon McMurray <[email protected]>
  • Loading branch information
zanbuchanan and jonathonmcmurray authored Jan 17, 2024
1 parent 66550e8 commit e8926c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions torq.q
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ getapplication:{$[0 = count a:@[{read0 x};hsym last getconfigfile"application.tx
// Read the process parameters
params:.Q.opt .z.x

// default start params for when in finspace
if[.finspace.enabled;
params[`noredirect]:enlist"true"; // logs need to go to stdout and stderr to be picked up by CloudWatch in Finspace
params[`jsonlogs]:enlist"true"]; // jsonlogs are neater in finspace, so setting to default. Can be turned off by setting to "false" in start commands

// check added for finspace to allow jsonlogs to be turned off - as default is to use jsonlogs
if["false"~lower first params`jsonlogs;params _:`jsonlogs];

\d .lg

// Set the logging table at the top level
Expand Down

0 comments on commit e8926c3

Please sign in to comment.