Skip to content

Commit

Permalink
Decode log error message (#602)
Browse files Browse the repository at this point in the history
Decode log error messages which begin with the char 'b' as the mark of byte string.s So that escape chars within messages can work well and can be printed out by a clear format.
  • Loading branch information
enya-yx committed Aug 24, 2022
1 parent 31414fe commit 3cfc8d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def wait_for_completion(self, timeout_seconds: Optional[float]) -> bool:
return True
elif status in {LivyStates.ERROR.value, LivyStates.DEAD.value, LivyStates.KILLED.value}:
logger.error("Feathr job has failed.")
logger.error(self._api.get_driver_log(self.current_job_info.id))
logger.error(self._api.get_driver_log(self.current_job_info.id).decode('utf-8'))
return False
else:
time.sleep(30)
Expand Down

0 comments on commit 3cfc8d0

Please sign in to comment.