コード例 #1
0
ファイル: Zorpctl.py プロジェクト: kmarcell/zorp
    def declog(listofinstances):
        """
        Lowers log level of Zorp instance(s) by instance name
        expects sequence of name(s)
        """
        UInterface.informUser("Decreasing Zorp loglevel:")

        if not listofinstances:
            UInterface.informUser(ZorpHandler.declog())
        else:
            algorithm = LogLevelAlgorithm(LogLevelAlgorithm.DECREASE)
            Zorpctl.runAlgorithmOnList(listofinstances, algorithm)