From nobody Thu Apr 25 12:54:29 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1552666808305649.8843407254361; Fri, 15 Mar 2019 09:20:08 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1ED5C62E90; Fri, 15 Mar 2019 16:20:07 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0F00119735; Fri, 15 Mar 2019 16:20:07 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 01C243FA46; Fri, 15 Mar 2019 16:20:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x2FGK5TN013592 for ; Fri, 15 Mar 2019 12:20:05 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6FC4560F89; Fri, 15 Mar 2019 16:20:05 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-50.ams2.redhat.com [10.36.112.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id C833460FAB for ; Fri, 15 Mar 2019 16:20:01 +0000 (UTC) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Fri, 15 Mar 2019 17:20:01 +0100 Message-Id: <20190315162001.27525-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] settings: disable template logs X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 15 Mar 2019 16:20:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Template logs are consuming gigabytes of disk on both patchew.org and next.patchew.org because of VariableDoesNotExist errors. Disable them since they are harmless. Signed-off-by: Paolo Bonzini Reviewed-by: Fam Zheng --- patchew/settings.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patchew/settings.py b/patchew/settings.py index 773ff0e..11a79b4 100644 --- a/patchew/settings.py +++ b/patchew/settings.py @@ -218,6 +218,10 @@ if not DEBUG: 'class': 'logging.FileHandler', 'filename': os.path.join(DATA_DIR, "log", "patchew.log"), }, + 'null': { + 'level': 'DEBUG', + 'class': 'logging.NullHandler', + }, }, 'loggers': { 'django': { @@ -225,5 +229,10 @@ if not DEBUG: 'level': 'DEBUG', 'propagate': True, }, + 'django.template': { + 'handlers': ['null'], # Quiet by default! + 'propagate': False, + 'level': 'DEBUG', + }, }, } --=20 2.20.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel