summaryrefslogtreecommitdiff
path: root/qpid/python/hello-010-world
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-03-05 11:12:39 +0000
committerRafael H. Schloming <rhs@apache.org>2008-03-05 11:12:39 +0000
commitb1d8edc3d82580ee03b2e2e6aa50eabf46c0c19e (patch)
tree31ad6ee8a597ebe90d525d843095c6ecf26f9084 /qpid/python/hello-010-world
parentc81a695791b84cb7a9ee9f6084c1ccfee011eb54 (diff)
downloadqpid-python-b1d8edc3d82580ee03b2e2e6aa50eabf46c0c19e.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@633815 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/hello-010-world')
-rwxr-xr-xqpid/python/hello-010-world4
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/python/hello-010-world b/qpid/python/hello-010-world
index 7685af8fd3..91ebc242c6 100755
--- a/qpid/python/hello-010-world
+++ b/qpid/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)