Skip to content

Commit

Permalink
Minor changes in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoAldea committed Dec 19, 2023
1 parent d01d575 commit 999af92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def __validate_exp_ranges(self, battery: CyclerDataBatteryC,
log.debug("Profile with current and voltage")
res = (profile.range.in_range_current(battery.elec_ranges) and
profile.range.in_range_voltage(battery.elec_ranges))
log.critical(f"Validating experiment: {res}")
log.debug(f"Validating experiment: {res}")
return res

def __update_exp_status(self, exp_status: CyclerDataExpStatusE) -> None:
Expand Down Expand Up @@ -288,7 +288,7 @@ def execute_machine_status(self) -> None: #pylint: disable=too-many-branches, to
log.debug("Executing experiment")
self.__execute_experiment()
## Check if the experiment has finish and try to get the next one
log.critical(f"Experiment status: {self.exp_status}")
log.debug(f"Experiment status: {self.exp_status}")
if self.exp_status in (CyclerDataExpStatusE.FINISHED,
CyclerDataExpStatusE.ERROR):
self.experiment = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def configure_cs(self, reqs_chan: SysShdChanC, data_chan: SysShdChanC,
reqs_chan.send_data(request)
response: MidStrCmdDataC = data_chan.receive_data()
if response.error_flag:
log.critical(("Was imposible to get the cycler station info from the database. "))
log.critical(("It was imposible to get the cycler station info from the database."))
self.status = SysShdNodeStatusE.INTERNAL_ERROR
else:
cs_info: CyclerDataCyclerStationC = response.station
Expand Down

0 comments on commit 999af92

Please sign in to comment.