Skip to content

Commit

Permalink
stateengine plugin: if attributes are not used log level is info inst…
Browse files Browse the repository at this point in the history
…ead of warning now.
  • Loading branch information
onkelandy committed Aug 22, 2023
1 parent ce67b30 commit 053201b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stateengine/StateEngineItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,12 @@ def __log_issues(self, issue_type):
to_check = self.__unused_attributes.items()
warn = ', '.join(key for key in self.__unused_attributes.keys())
self.__logger.info("")
self.__logger.warning("There are {} issues: {} Please check extended "
"log file for details.", issue_type, warn)
if issue_type == 'attributes':
self.__logger.info("These attributes are not used: {} Please check extended "
"log file for details.", warn)
else:
self.__logger.warning("There are {} issues: {} Please check extended "
"log file for details.", issue_type, warn)
self.__logger.info("")
self.__logger.info("The following {} have issues:", issue_type)
self.__logger.increase_indent()
Expand Down

0 comments on commit 053201b

Please sign in to comment.