Skip to content

Commit

Permalink
Configure agent to use the disable logs options
Browse files Browse the repository at this point in the history
Issue #151
  • Loading branch information
damies13 committed Apr 8, 2024
1 parent b46f3db commit 0356b40
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions rfswarm_agent/rfswarm_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,8 +1029,25 @@ def runthread(self, jobid):

self.debugmsg(9, "runthread: cmd:", cmd)

cmd.append("-o")
cmd.append('"' + outputFile + '"')
# disableloglog': 'True',
if "disableloglog" in self.jobs[jobid]:
if self.str2bool(self.jobs[jobid]["disableloglog"]):
cmd.append("-l NONE")
# 'disablelogreport': 'True',
if "disablelogreport" in self.jobs[jobid]:
if self.str2bool(self.jobs[jobid]["disablelogreport"]):
cmd.append("-r NONE")
# 'disablelogoutput': 'True',
disablelogoutput = False
if "disablelogoutput" in self.jobs[jobid]:
disablelogoutput = self.str2bool(self.jobs[jobid]["disablelogoutput"])
if self.xmlmode:
disablelogoutput = False
if disablelogoutput:
cmd.append("-o NONE")
else:
cmd.append("-o")
cmd.append('"' + outputFile + '"')

cmd.append('"' + localfile + '"')

Expand Down

0 comments on commit 0356b40

Please sign in to comment.