Skip to content

Commit

Permalink
handle as info() not error() (#180)
Browse files Browse the repository at this point in the history
Changed the logging from exception() to info() because these are allowed exceptions that allow a success status despite no output being generated. It means there is a data error but nothing that a stack trace helps with at least.
  • Loading branch information
al-niessner authored Aug 19, 2022
1 parent 2486987 commit 981d5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/dawgie/pl/worker/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def execute (address:(str,int), inc:int, ps_hint:int, rev:str):
tim=m.timing,
val=nv)
except (dawgie.NoValidInputDataError, dawgie.NoValidOutputDataError):
logging.getLogger(__name__).exception ('Job "%s" had invalid data for run id %s and target "%s"', str(m.jobid), str(m.runid), str(m.target))
logging.getLogger(__name__).info ('Job "%s" had invalid data for run id %s and target "%s"', str(m.jobid), str(m.runid), str(m.target))
m = dawgie.pl.message.make (typ=dawgie.pl.message.Type.response,
inc=m.target,
jid=m.jobid,
Expand Down

0 comments on commit 981d5ef

Please sign in to comment.