From 384d89713da0263bcd7e16474f7b5ca54cbc44d5 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Wed, 5 Mar 2008 11:12:39 +0000 Subject: added logging; fixed deprecation warnings in old codec; filled in datatypes.Message git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@633815 13f79535-47bb-0310-9956-ffa450edef68 --- python/hello-010-world | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/hello-010-world') diff --git a/python/hello-010-world b/python/hello-010-world index 7685af8fd3..91ebc242c6 100755 --- a/python/hello-010-world +++ b/python/hello-010-world @@ -1,10 +1,14 @@ #!/usr/bin/env python +import logging from qpid.connection010 import Connection from qpid.spec010 import load from qpid.util import connect from qpid.datatypes import Message +format = "%(asctime)s %(name)-12s %(levelname)-8s %(message)s" +logging.basicConfig(level=logging.DEBUG, format=format, datefmt='%H:%M:%S') + spec = load("../specs/amqp.0-10.xml") conn = Connection(connect("0.0.0.0", spec.port), spec) conn.start(timeout=10) -- cgit v1.2.1