WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 1 of 7] tools/check: remove check_logging

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 1 of 7] tools/check: remove check_logging
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 04 Oct 2011 16:21:50 +0200
Delivery-date: Tue, 04 Oct 2011 07:22:38 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1317738114; l=1385; s=domk; d=aepfle.de; h=To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=47cSKJfNcpg9nZqEPz3vQaZKdCw=; b=Z17poMltg3GZgQpW+KKbJlvEGipU8KlXh5xiIIWM/gBbcO+KaiJQILJGP1lq9gHst/4 CJvJcDSz3Z8s4+A24mL6rMnHMLAx4u1emBO5/r4MMI3p5bJ6gDUR9z7fXQLYK8ypfDzPy MwiFVCCjEIUPC1fIUVYoqeFjxlMYZRBG8G0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1317738109@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1317738109@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1317738016 -7200
# Node ID c2daf20cf860d942d1105ce2f5fa7e171c536466
# Parent  0b66e6450ffe6823d8b323ef4248b38fe7372d54
tools/check: remove check_logging

Remove tools/check/check_logging.
Python 2.3 is the minimal required python version so the checked
function is available anyway.
It is the only python script, its in the way for an subsequent
change which will call all check_* scripts with shell.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r 0b66e6450ffe -r c2daf20cf860 tools/check/check_logging
--- a/tools/check/check_logging
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python
-#  -*- mode: python; -*-
-
-import os
-import sys
-
-def hline():
-    print >>sys.stderr, "*" * 70
-
-def msg(message):
-    print >>sys.stderr, "*" * 3, message
-
-def check_logging():
-    """Check python logging is installed and raise an error if not.
-    Logging is standard from Python 2.3 on.
-    """
-    try:
-        import logging
-    except ImportError:
-        hline()
-        msg("")
-        msg("  *** Python logging is not installed.")
-        msg("  *** Use 'make install-logging' at the xen root to install.")
-        msg("  *** ")
-        msg("  *** Alternatively download and install from")
-        msg("  *** http://www.red-dove.com/python_logging.html";)
-        hline()
-        sys.exit(1)
-
-if __name__ == '__main__':
-    check_logging()

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel