summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2abbb57)
raw | patch | inline | side by side (parent: 2abbb57)
author | Florian Forster <octo@huhu.verplant.org> | |
Tue, 10 Aug 2010 07:20:54 +0000 (09:20 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 10 Aug 2010 07:20:54 +0000 (09:20 +0200) |
src/amqp.c | patch | blob | history |
diff --git a/src/amqp.c b/src/amqp.c
index d6cd2756a9b5b2b5312515528eeaae14677be9ca..c77c345bbcd071b1a5fc9a8c150e8d5957b47cfc 100644 (file)
--- a/src/amqp.c
+++ b/src/amqp.c
break;
} /* for (i = 0; i < ci->children_num; i++) */
- if ((status == 0) && !publish && (conf->exchange == NULL))
+ if ((status == 0) && (conf->exchange == NULL))
{
- if (conf->routing_key != NULL)
- WARNING ("amqp plugin: The option \"RoutingKey\" was given "
- "without the \"Exchange\" option. It will be ignored.");
-
if (conf->exchange_type != NULL)
WARNING ("amqp plugin: The option \"ExchangeType\" was given "
"without the \"Exchange\" option. It will be ignored.");
+
+ if (!publish && (conf->routing_key != NULL))
+ WARNING ("amqp plugin: The option \"RoutingKey\" was given "
+ "without the \"Exchange\" option. It will be ignored.");
+
}
if (status != 0)