def command_success(self, message): """ Log successful end of a command. This should be used in :meth:`ievv_opensource.utils.ievvbuildstatic.pluginbase.Plugin.run` when the task succeeds. """ if self.level >= self.INFO: self.__command_end(message, color=ievv_colorize.COLOR_GREEN, bold=True) desktopnotificationapi.show_message( title='SUCCESS - {}'.format(self.name), message=message)
def command_error(self, message): """ Log failing end of a command. This should be used in :meth:`ievv_opensource.utils.ievvbuildstatic.pluginbase.Plugin.run` when the task fails. """ self.__command_end(message, color=ievv_colorize.COLOR_RED, bold=True) if self.level < self.DEBUG and self.command_error_message: self.__colorprint(self.command_error_message, color=ievv_colorize.COLOR_GREY, bold=True) desktopnotificationapi.show_message( title='ERROR - {}'.format(self.name), message=message)