summaryrefslogtreecommitdiff
path: root/cpp/src
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
commit77a0927ded844a58fead8ab39a60644c8211c5d2 (patch)
tree0872c9c28419674b9a16afc3a99ff0131bda8e50 /cpp/src
parentdb5a5ae4ae773642c02c76a0c5c2723e8342f5a6 (diff)
downloadqpid-python-77a0927ded844a58fead8ab39a60644c8211c5d2.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/qpid@830696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/cluster/Cluster.cpp6
-rwxr-xr-xcpp/src/tests/start_cluster2
2 files changed, 2 insertions, 6 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.cpp b/cpp/src/qpid/cluster/Cluster.cpp
index 0706fc72e8..f5db692e92 100644
--- a/cpp/src/qpid/cluster/Cluster.cpp
+++ b/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/cpp/src/tests/start_cluster b/cpp/src/tests/start_cluster
index fb3d27373a..dadb1ee743 100755
--- a/cpp/src/tests/start_cluster
+++ b/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