Skip to content

Commit

Permalink
files
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Sep 3, 2021
1 parent 8387af0 commit c00b291
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crmsh/cibconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def _edit_save(self, s):
rc = True
os.unlink(tmp)
except OSError as e:
logger.debug("unlink(%s) failure: %s", tmp, e)
logger.error("unlink(%s) failure: %s", tmp, e)
except IOError as msg:
logger.error(msg)
return rc
Expand Down
2 changes: 1 addition & 1 deletion crmsh/ui_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def trans_to_help(line):
return " ".join(line_list[:-2] + ["help", "property"])
else:
return line
logger_utils.log_only_to_file("Input line: {}".format(line))
logger_utils.log_only_to_file("Current level: {}; Input line: {}".format(self.level_name(), line))

line = line.strip()
if not line or line.startswith('#'):
Expand Down
5 changes: 2 additions & 3 deletions crmsh/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,9 @@ def filter_string(cmd, s, stderr_on=True, shell=True):
except OSError as err:
if err.errno != os.errno.EPIPE:
logger.error(err.strerror)
logger.info("from: %s", cmd)
logger.error("from: %s", cmd)
except Exception as msg:
logger.error(msg)
logger.info("from: %s", cmd)
logger.error("from: %s: %s", cmd, str(msg))
return rc, to_ascii(outp)


Expand Down

0 comments on commit c00b291

Please sign in to comment.