Skip to content

Commit

Permalink
Comment improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersulyok committed Nov 9, 2023
1 parent 5acd9c6 commit 88222de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/smfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ def exit_func(self) -> None:
self.ipmi.set_fan_level(Ipmi.CPU_ZONE, 100)
self.ipmi.set_fan_level(Ipmi.HD_ZONE, 100)
if hasattr(self, "log"):
self.log.msg(Log.LOG_ERROR, 'smfc terminated: all fans are switched back to the 100% speed.')
self.log.msg(Log.LOG_INFO, 'smfc terminated: all fans are switched back to the 100% speed.')

# Unregister this function.
atexit.unregister(self.exit_func)
Expand All @@ -992,7 +992,7 @@ def run(self) -> None:
app_parser.add_argument('-o', type=int, choices=[0, 1, 2], default=2,
help='log output: 0-stdout, 1-stderr, 2-syslog(default)')
# Note: the argument parser can exit here with the following exit codes:
# 0 - help text, version
# 0 - printing help or version text
# 2 - invalid parameter
parsed_results = app_parser.parse_args()

Expand Down

0 comments on commit 88222de

Please sign in to comment.