From a5963cd67f92ab9c1ee34d0c797cbcc8bd447b31 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 20 May 2010 13:25:48 +0000 Subject: Replace print to stderr with logging.error call on unhandled exception. This should work with both Python 2 and Python 3. --- configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.py') diff --git a/configure.py b/configure.py index 9dda0c7f4..d81096d00 100755 --- a/configure.py +++ b/configure.py @@ -1576,7 +1576,7 @@ if __name__ == '__main__': try: main() except Exception, e: - print >>sys.stderr, e + logging.error(str(e)) #import traceback #traceback.print_exc(file=sys.stderr) sys.exit(1) -- cgit v1.2.3