From nobody Mon Feb 9 16:18:57 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590943258; cv=none; d=zohomail.com; s=zohoarc; b=ZRn+UlJkCzAtKR8woD9NhQepHD1Sy/CRVqGZHOtGde0J1Ascs9hWosXO03VF6JC3JJr6cxfs9z/QrzSUFVFd9VNI05RfOMnekRkJ0Cq5ozbIMg0p9wJ1+DNKr4jMyhyqPaMUL6YYp61QgzaeD7Zc23ykpw2PmHD3VRqLhn5o62M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590943258; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=gbfmbJetD8UXBRyHPiWp2CZGSyL0yCJiZ8wSWR7Ajrc=; b=kBPJTP4ntJFj74EpbUqhszQKS/3xm5XtOSRJbyJCVPLrZZ0BuN4F+w2fwFmNqnODPsez+aXabMT9Zg0m+X7gemv/2P7BM6b1S5JjVM7Tdp68YBC2IxXOzUziS4qyPG/55JFSb2u1+IgM7U6/KTjeGLSjJL56oyWYNaz4cRHNRyc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590943258297955.1489609342426; Sun, 31 May 2020 09:40:58 -0700 (PDT) Received: from localhost ([::1]:51120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfR16-0003RY-U8 for importer@patchew.org; Sun, 31 May 2020 12:40:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfQzs-0001da-09 for qemu-devel@nongnu.org; Sun, 31 May 2020 12:39:40 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:39484 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jfQzr-0006kx-6m for qemu-devel@nongnu.org; Sun, 31 May 2020 12:39:39 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-137-Ioi2TqhyMkKHRozy2hLV8A-1; Sun, 31 May 2020 12:39:36 -0400 Received: by mail-wr1-f71.google.com with SMTP id n6so3624099wrv.6 for ; Sun, 31 May 2020 09:39:36 -0700 (PDT) Received: from localhost.localdomain (43.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.43]) by smtp.gmail.com with ESMTPSA id s7sm17688910wrr.60.2020.05.31.09.39.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 May 2020 09:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590943178; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gbfmbJetD8UXBRyHPiWp2CZGSyL0yCJiZ8wSWR7Ajrc=; b=WWgHRcTauvbPDjd2H4idUM9PvClm6ie1dsT5v3I5FbRT4WEPQWca3sYHkVYW++tGPocT9l E+FUUUvima4ckm66DTEuIWQ2JK/3ySHoKQn3avhK2oLPGo2HcthAi/CFpteAa3wTMaAdQz F0jmMdK3h0rBIMSyCF8S44RAjyGRhO0= X-MC-Unique: Ioi2TqhyMkKHRozy2hLV8A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gbfmbJetD8UXBRyHPiWp2CZGSyL0yCJiZ8wSWR7Ajrc=; b=MH9ADqAlJrx+HP+9xa2oBiffr0bPEXnz/MUl8xHeN/ID0CW93r5aOSVhz4oyLTiWyn jhHdD+dEwhEKQIrRfZHSsXzvVfAB4joD8I9DGXqfSyZMGD4SxPfo7aKzpVF+FPVgq2ie Vxcy9KynconmOaMWjiUclLNliwAaLPI8QrgqH/vlgQERKgEbvs15RnuuS9nwOpffTGwV V97PxNo9Xn5SOgVWtdcUr+ZsKPkQ3R2GR99Zgakh/8LL3ZKOCidvoEF7UQiYtYGA8ixt Z3PiTjYg8oZ9E2Z3tKSLHVDFoAcEtnXCIYXBAyHtWpdEc4z4wyTT8vwQHPmZmR+i+zeM R97A== X-Gm-Message-State: AOAM530gAh9oySby+eQ23B6vpJd15HoKpia7rsmRyL4eaEpLBsMnuwbP Ck0EiXWeMXwgvuu4pVHvNfSv7bZo95CYM7+2/WzkLp4yjLi/HZ06ayPMd6I1HFxHQbW4hAu3AaA 3F6sm0QbYOCcI65A= X-Received: by 2002:a5d:6905:: with SMTP id t5mr17760709wru.113.1590943175696; Sun, 31 May 2020 09:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyR0WKTSgw9DfCBwsj7WS7gvkIpsMb9ekd4IwqI/sxgbznb+YzTnTNNzeC4sMj2PMSV+Th05w== X-Received: by 2002:a5d:6905:: with SMTP id t5mr17760696wru.113.1590943175563; Sun, 31 May 2020 09:39:35 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 09/25] python/qemu/machine: remove logging configuration Date: Sun, 31 May 2020 18:38:30 +0200 Message-Id: <20200531163846.25363-10-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200531163846.25363-1-philmd@redhat.com> References: <20200531163846.25363-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/31 12:38:54 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Fam Zheng , Eduardo Habkost , kvm@vger.kernel.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Marcelo Tosatti , Markus Armbruster , Max Reitz , John Snow , Stefan Hajnoczi , Cleber Rosa , Paolo Bonzini , qemu-block@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: John Snow Python 3.5 and above do not print a warning when logging is not configured. As a library, it's best practice to leave logging configuration to the client executable. Signed-off-by: John Snow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20200514055403.18902-22-jsnow@redhat.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- python/qemu/machine.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/qemu/machine.py b/python/qemu/machine.py index d2f531f1b4..41554de533 100644 --- a/python/qemu/machine.py +++ b/python/qemu/machine.py @@ -119,9 +119,6 @@ def __init__(self, binary, args=3DNone, wrapper=3DNone,= name=3DNone, self._console_socket =3D None self._remove_files =3D [] =20 - # just in case logging wasn't configured by the main script: - logging.basicConfig() - def __enter__(self): return self =20 --=20 2.21.3