diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-03-05 11:12:39 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-03-05 11:12:39 +0000 |
| commit | 384d89713da0263bcd7e16474f7b5ca54cbc44d5 (patch) | |
| tree | 221f6cc3eb96f04baed771ac6254ed2fb567b088 /python/hello-010-world | |
| parent | 6cca77ab3a06e94899659c7201e71145ea445363 (diff) | |
| download | qpid-python-384d89713da0263bcd7e16474f7b5ca54cbc44d5.tar.gz | |
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
Diffstat (limited to 'python/hello-010-world')
| -rwxr-xr-x | python/hello-010-world | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
