summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-10-28 17:38:58 +0000
committerAlan Conway <aconway@apache.org>2009-10-28 17:38:58 +0000
commitd39084bb979ff7a39432ba5cecd8c3f097ff3e53 (patch)
treebc1ab204c1f293de5155b4e378dd07f84b310f52 /qpid/cpp
parent353a4d3b3e1f721b308e3990b38a8e9e7a48338f (diff)
downloadqpid-python-d39084bb979ff7a39432ba5cecd8c3f097ff3e53.tar.gz
Reduce redundancy in cluster log output.
start_cluster: Use PID in cluster name to avoid name clashes with multiple tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@830696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/cluster/Cluster.cpp6
-rwxr-xr-xqpid/cpp/src/tests/start_cluster2
2 files changed, 2 insertions, 6 deletions
diff --git a/qpid/cpp/src/qpid/cluster/Cluster.cpp b/qpid/cpp/src/qpid/cluster/Cluster.cpp
index 0706fc72e8..f5db692e92 100644
--- a/qpid/cpp/src/qpid/cluster/Cluster.cpp
+++ b/qpid/cpp/src/qpid/cluster/Cluster.cpp
@@ -349,7 +349,6 @@ const ClusterUpdateOfferBody* castUpdateOffer(const framing::AMQBody* body) {
// This thread decodes frames from events.
void Cluster::deliveredEvent(const Event& e) {
if (e.isCluster()) {
- QPID_LOG(trace, *this << " DLVR: " << e);
EventFrame ef(e, e.getFrame());
// Stop the deliverEventQueue on update offers.
// This preserves the connection decoder fragments for an update.
@@ -361,8 +360,7 @@ void Cluster::deliveredEvent(const Event& e) {
}
deliverFrame(ef);
}
- else if(!discarding) {
- QPID_LOG(trace, *this << " DLVR: " << e);
+ else if(!discarding) {
if (e.isControl())
deliverFrame(EventFrame(e, e.getFrame()));
else {
@@ -376,8 +374,6 @@ void Cluster::deliveredEvent(const Event& e) {
}
}
}
- else // Discard connection events if discarding is set.
- QPID_LOG(trace, *this << " DROP: " << e);
}
void Cluster::flagError(
diff --git a/qpid/cpp/src/tests/start_cluster b/qpid/cpp/src/tests/start_cluster
index fb3d27373a..dadb1ee743 100755
--- a/qpid/cpp/src/tests/start_cluster
+++ b/qpid/cpp/src/tests/start_cluster
@@ -28,7 +28,7 @@
rm -f cluster*.log cluster.ports qpidd.port
SIZE=${1:-3}; shift
-CLUSTER=`pwd` # Cluster name=pwd, avoid clashes.
+CLUSTER=$HOSTNAME.$$
OPTS="-d --no-module-dir --load-module ../.libs/cluster.so --cluster-name=$CLUSTER --auth=no --log-enable notice+ --log-enable debug+:cluster $@"
for (( i=0; i<SIZE; ++i )); do