From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DF919A04AF; Thu, 20 Aug 2020 09:41:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A64981BEC3; Thu, 20 Aug 2020 09:41:42 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id D677FAAD5 for ; Thu, 20 Aug 2020 09:41:40 +0200 (CEST) IronPort-SDR: vTAyxMpnq5yEnGxinUw/YrEcaSObVreFMcsj5gVvUrUNUiSg8CvX9cPyXyYQSEN1Y5CP9uZby3 lP84kG2JPjtA== X-IronPort-AV: E=McAfee;i="6000,8403,9718"; a="156321580" X-IronPort-AV: E=Sophos;i="5.76,332,1592895600"; d="scan'208";a="156321580" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2020 00:41:39 -0700 IronPort-SDR: RYD7dvDzrVRfTvnhEo0gB5QWLRJ7HJ3vWUdj0I6L+ZIzFbSIZmHadxypYwSi4FVG9vnUnikOhk OeiL6VVOX6bQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,332,1592895600"; d="scan'208";a="334918767" Received: from orsmsx604-2.jf.intel.com (HELO ORSMSX604.amr.corp.intel.com) ([10.22.229.84]) by FMSMGA003.fm.intel.com with ESMTP; 20 Aug 2020 00:41:39 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 20 Aug 2020 00:41:38 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 20 Aug 2020 00:41:38 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.174) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 20 Aug 2020 00:41:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hxsfBf3d37UAJxLDfpWDv6Ys8c4CHCIP8rPOODw4lJFSBFU4M+D4a97fEg0ElsxEjKad4SDjbmst0m9SOFvcImZdPH9997S+DCVYkODFIWBq4O2OKvWwUag2rKQOPqE9x8CxmQWCRJeBvodO8bKuGiIgm0gP80llP3CkiEATWvuFSc+VRoApPXWZurplIi0jSjoaZA85682Zksqw83Kb42BAqmrl6yQ5DWshYFEQ5dfwRuK3/ogF2rXdP+3ma6exh02sclu1zuAaQcFctiRZyCU+/8IMk2XIxk+MZm0gmTunF7rvg6Wo3dKf2U81OXxEsivm5bYsYGX6VT07StFhcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mWzsDHZWy6cAaHkB3kqtUDFupZjVTMONe6FfL3J2taQ=; b=M5Duooi19vZ46ndsmsSb9x6IigX/82Nwa/DbBVmaard+cSKgm3AVnJeS7AoJYfSVQFrkk4QuD+6wp09MuSjo2KCR1r7XmgCDs1OEetSHHmDYzWzcBDG4yXgNaoTtcRqOaTtvzdzHx5rdVnL6cfkxHOiRlrr9kHD1Rgl1RgG4SfMBfcKc/c/HuVLETnU9lo6ejWTM8umZej9EKO2WL284/KUYxuz0yAPWXqesA874fo3GmsYXg1NllhxdVae/0Pl9wW8EwV3R5zw17RpYR+SYb7vfes+8Gd3DSA8dqODlfxhfBLDJ8B/y4LxyDiTAP2KWt1IRn8zT1g2/JY2VpQykAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mWzsDHZWy6cAaHkB3kqtUDFupZjVTMONe6FfL3J2taQ=; b=ED+VRoDBoYDt/8BCa+MpyWdJux8NUyunG7qm7lGfg0deIXLOjZaYtHvte62abdkwk9aJrB6ONrt/Ch/xyMgNLoMNL+rF0MAIiczRXKPOBIrMDYM/hXpMdrHLO+i05nmrtosW1d4JFZKeoC+aYjeiSJ0u5zfHP734FUF3l61J95w= Received: from MWHPR1101MB2254.namprd11.prod.outlook.com (2603:10b6:301:58::11) by MWHPR1101MB2206.namprd11.prod.outlook.com (2603:10b6:301:51::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.15; Thu, 20 Aug 2020 07:41:37 +0000 Received: from MWHPR1101MB2254.namprd11.prod.outlook.com ([fe80::206d:f3f3:b571:41ee]) by MWHPR1101MB2254.namprd11.prod.outlook.com ([fe80::206d:f3f3:b571:41ee%11]) with mapi id 15.20.3305.025; Thu, 20 Aug 2020 07:41:36 +0000 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [PATCH V1] fix enable verbose dts log duplicate info in file and console Thread-Index: AQHWdsTpa4zITiBnREuW77bcrd5bl6lAnQnQ Date: Thu, 20 Aug 2020 07:41:36 +0000 Message-ID: References: <20200820071548.89512-1-qimaix.xiao@intel.com> In-Reply-To: <20200820071548.89512-1-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.38] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 386c2528-2671-4c7c-8cb7-08d844dc77f7 x-ms-traffictypediagnostic: MWHPR1101MB2206: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1284; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xmsLPApetmu3cOLKWT6K1CNW5pJN6jviye9/ROlWRqx/XVGBn6oBnVqFIFvcD7/q8GeIYxiTghlhzNUI3JPSHpN0u32V5Cu7x+H5Lgz7f05Lp7zrdRa502pYdFXDnrqO51brwP5n5WhAmHJHGEkp+cnI4FAVc3OiUmKIOu8zwB+q8DXb0JFQpJdSSvMC1BKPfct/3Ok0qvO0wGx3qZZCbHkh9QnlU/LQ+laPTHtkiPCcx/pRssT5Om9IuaqRNSZV7Io6sugtCNXE7UQ5EnegyVYueDfI21EwQtZ+8jvKdL4O2lfiTOk2D4Whhn+jwNv8xOpCXmhY0hVSzUUh8Jokhg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1101MB2254.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(376002)(136003)(366004)(39860400002)(6916009)(186003)(86362001)(8676002)(7696005)(83380400001)(26005)(66446008)(55016002)(6506007)(53546011)(64756008)(33656002)(71200400001)(9686003)(76116006)(66556008)(66476007)(66946007)(316002)(478600001)(8936002)(5660300002)(52536014)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: dk146KZZYz0qO+mLPCAdRFhJ2hCdP/CkCPr76ba2ccLQEPy1OjSyoUAMrK0j1ZIfmwM2l4h7DlAn1FxtBpVPRykY9Ojy3VxcAkeaglzMTi8YiOMx7fI5v4UuR9RSFhTw1GuGaPMNwbS7PdkB1tM3xvD8F+dhfoAZ99AGMWWkoA4k8bR+uOXCBjO8zCpIB8mM8vc/rXwAQzbWJQzLmk8tltTl3Hpjk0t5ycMmcBmAoiZPC8yOZ2kJAiAKetQG1B00OOHwNO5uO605sEYcvIZ/s3+Nw4+Le3y72LJUlojOZPSjzij3uKJE50ydfdaT254Z4n3xxYsxMb9IhFy7RrmnC3d69zt4B0TLsIovvEtWd33O0Ekm9ysQiKr76Uq3QVnVw4r26CyvjSMQPEyTp+m5im9mftDE1VjrYhC/yoj2Oe05Yck67ADTKqynZiNSO+o35DgamQifHB9ucU3gzMdBPppqn9igBBEUQi4x/45F+sMZ4SYCSgCR+Cqvl12LUggNzUHQrmVEF+JEzGwRUmK93mabZuA1VjlL1Deyk3H3hR4fcj1UFCd1jXuzi2K4y/tq1cYY3YQMeyuVcGJvkqPBtpbowKVr92JUqFJT60xqFwj12zCip2e8G0odTSrWwbpx6fBDmqgvybIRsv7JkStvRQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR1101MB2254.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 386c2528-2671-4c7c-8cb7-08d844dc77f7 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Aug 2020 07:41:36.7661 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7M93bcFoOQGFwBQm0X/Hnv5Sc8IKAopKymLU4cHzaPBHi3/3fwsM5Yp/TSPvwx+Z45PMZqN3t74KTyFLN/SkVg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1101MB2206 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V1] fix enable verbose dts log duplicate info in file and console X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Tested-by: Xiao Qimai Regards, Xiao Qimai > -----Original Message----- > From: Xiao, QimaiX > Sent: Thursday, August 20, 2020 3:16 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [PATCH V1] fix enable verbose dts log duplicate info in file and > console >=20 > *. debug level is lower than info, when enable dts verbose, both info and > debug message will be print and logged twice >=20 > Signed-off-by: Xiao Qimai > --- > framework/ssh_connection.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/framework/ssh_connection.py b/framework/ssh_connection.py > index afeef1c..e096a9e 100644 > --- a/framework/ssh_connection.py > +++ b/framework/ssh_connection.py > @@ -62,7 +62,7 @@ class SSHConnection(object): > def send_expect(self, cmds, expected, timeout=3D15, verify=3DFalse): > self.logger.info(cmds) > out =3D self.session.send_expect(cmds, expected, timeout, verify= ) > - self.logger.debug(out) > + self.logger.debug(out.replace(cmds, '')) > if type(self.history) is list: > self.history.append({"command": cmds, "name": self.name, "ou= tput": > out}) > return out > @@ -70,7 +70,7 @@ class SSHConnection(object): > def send_command(self, cmds, timeout=3D1): > self.logger.info(cmds) > out =3D self.session.send_command(cmds, timeout) > - self.logger.debug(out) > + self.logger.debug(out.replace(cmds, '')) > if type(self.history) is list: > self.history.append({"command": cmds, "name": self.name, "ou= tput": > out}) > return out > -- > 2.25.1