Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 596FFE00CA1; Fri, 1 Jun 2018 00:00:19 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 0AD95E00C4B for ; Fri, 1 Jun 2018 00:00:18 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id w5170Hpo000175 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 1 Jun 2018 00:00:17 -0700 (PDT) Received: from localhost (128.224.162.137) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 1 Jun 2018 00:00:14 -0700 From: Yi Zhao To: , Date: Fri, 1 Jun 2018 15:00:10 +0800 Message-ID: <1527836411-20020-1-git-send-email-yi.zhao@windriver.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [128.224.162.137] Subject: [layerindex-web][PATCH 1/2] rrs_upstream_email.py: enable set log level X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2018 07:00:19 -0000 Content-Type: text/plain Add logger.setLevel to enable set log level. Signed-off-by: Yi Zhao --- rrs/tools/rrs_upstream_email.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rrs/tools/rrs_upstream_email.py b/rrs/tools/rrs_upstream_email.py index cdc352d..8ef0b3c 100755 --- a/rrs/tools/rrs_upstream_email.py +++ b/rrs/tools/rrs_upstream_email.py @@ -141,6 +141,7 @@ def main(): action="store_const", const=logging.ERROR, dest="loglevel") options, args = parser.parse_args(sys.argv) + logger.setLevel(options.loglevel) # get recipes for send email if options.plan: -- 2.7.4