diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-11-28 15:32:36 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-12-12 02:55:40 +0100 |
commit | 5c01e9e85d64a0d19890e448168dc440628e3780 (patch) | |
tree | a1f151f96a64010719d8979332d68df74d7e4543 /documentapi | |
parent | f984729ecc3330af39a7f050ca5dfe24a0d401a0 (diff) |
No need to include log.h when not logging
Diffstat (limited to 'documentapi')
11 files changed, 2 insertions, 35 deletions
diff --git a/documentapi/src/vespa/documentapi/messagebus/messages/documentmessage.cpp b/documentapi/src/vespa/documentapi/messagebus/messages/documentmessage.cpp index 1097beb8746..6d1356a2c08 100644 --- a/documentapi/src/vespa/documentapi/messagebus/messages/documentmessage.cpp +++ b/documentapi/src/vespa/documentapi/messagebus/messages/documentmessage.cpp @@ -1,7 +1,5 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP(".documentmessage"); #include <vespa/documentapi/messagebus/messages/documentmessage.h> #include <vespa/documentapi/messagebus/documentprotocol.h> @@ -22,7 +20,7 @@ mbus::Reply::UP DocumentMessage::createReply() const { mbus::Reply::UP ret(doCreateReply().release()); - LOG_ASSERT(ret.get() != NULL); + assert(ret.get() != NULL); return ret; } diff --git a/documentapi/src/vespa/documentapi/messagebus/messages/visitor.cpp b/documentapi/src/vespa/documentapi/messagebus/messages/visitor.cpp index ecdc190ba93..9287d8f62aa 100644 --- a/documentapi/src/vespa/documentapi/messagebus/messages/visitor.cpp +++ b/documentapi/src/vespa/documentapi/messagebus/messages/visitor.cpp @@ -1,8 +1,5 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP(".visitor.messages"); - #include <vespa/document/bucket/bucketid.h> #include "visitor.h" diff --git a/documentapi/src/vespa/documentapi/messagebus/policies/andpolicy.cpp b/documentapi/src/vespa/documentapi/messagebus/policies/andpolicy.cpp index 79391315cd0..def23cd9d78 100644 --- a/documentapi/src/vespa/documentapi/messagebus/policies/andpolicy.cpp +++ b/documentapi/src/vespa/documentapi/messagebus/policies/andpolicy.cpp @@ -1,6 +1,5 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> #include <vespa/messagebus/error.h> #include <vespa/messagebus/errorcode.h> #include <vespa/messagebus/emptyreply.h> @@ -8,8 +7,6 @@ #include <vespa/documentapi/messagebus/documentprotocol.h> #include <vespa/documentapi/messagebus/policies/andpolicy.h> -LOG_SETUP(".andpolicy"); - namespace documentapi { ANDPolicy::ANDPolicy(const string ¶m) diff --git a/documentapi/src/vespa/documentapi/messagebus/policies/errorpolicy.cpp b/documentapi/src/vespa/documentapi/messagebus/policies/errorpolicy.cpp index fccb2f2c3a6..24bdb9b9bbc 100644 --- a/documentapi/src/vespa/documentapi/messagebus/policies/errorpolicy.cpp +++ b/documentapi/src/vespa/documentapi/messagebus/policies/errorpolicy.cpp @@ -1,8 +1,5 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP(".errorpolicy"); - #include <vespa/documentapi/messagebus/documentprotocol.h> #include <vespa/messagebus/emptyreply.h> #include <vespa/messagebus/routing/routingcontext.h> @@ -25,7 +22,7 @@ ErrorPolicy::select(mbus::RoutingContext &ctx) void ErrorPolicy::merge(mbus::RoutingContext &) { - LOG_ASSERT(false); + abort(); } } diff --git a/documentapi/src/vespa/documentapi/messagebus/policies/roundrobinpolicy.cpp b/documentapi/src/vespa/documentapi/messagebus/policies/roundrobinpolicy.cpp index 3c566d0fca5..c1cad546cd6 100644 --- a/documentapi/src/vespa/documentapi/messagebus/policies/roundrobinpolicy.cpp +++ b/documentapi/src/vespa/documentapi/messagebus/policies/roundrobinpolicy.cpp @@ -1,8 +1,5 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP(".roundrobinpolicy"); - #include <vespa/documentapi/messagebus/documentprotocol.h> #include <vespa/messagebus/emptyreply.h> #include <vespa/messagebus/errorcode.h> diff --git a/documentapi/src/vespa/documentapi/messagebus/routablefactories41.cpp b/documentapi/src/vespa/documentapi/messagebus/routablefactories41.cpp index f07c797fb0f..baa400e5100 100644 --- a/documentapi/src/vespa/documentapi/messagebus/routablefactories41.cpp +++ b/documentapi/src/vespa/documentapi/messagebus/routablefactories41.cpp @@ -1,8 +1,5 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP(".routablefactories"); - #include "routablefactories41.h" #include <vespa/document/document.h> #include <vespa/documentapi/documentapi.h> diff --git a/documentapi/src/vespa/documentapi/messagebus/routablefactories42.cpp b/documentapi/src/vespa/documentapi/messagebus/routablefactories42.cpp index 358de79da8a..37d208c1f0c 100644 --- a/documentapi/src/vespa/documentapi/messagebus/routablefactories42.cpp +++ b/documentapi/src/vespa/documentapi/messagebus/routablefactories42.cpp @@ -1,8 +1,5 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP(".routablefactories42"); - #include "routablefactories42.h" #include <vespa/document/document.h> #include <vespa/documentapi/documentapi.h> diff --git a/documentapi/src/vespa/documentapi/messagebus/routablefactories50.cpp b/documentapi/src/vespa/documentapi/messagebus/routablefactories50.cpp index 9a604160247..c1b518f0cfa 100644 --- a/documentapi/src/vespa/documentapi/messagebus/routablefactories50.cpp +++ b/documentapi/src/vespa/documentapi/messagebus/routablefactories50.cpp @@ -1,8 +1,5 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP(".routablefactories50"); - #include "routablefactories50.h" #include <vespa/documentapi/loadtypes/loadtypeset.h> #include <vespa/document/document.h> diff --git a/documentapi/src/vespa/documentapi/messagebus/routablefactories51.cpp b/documentapi/src/vespa/documentapi/messagebus/routablefactories51.cpp index 32941b7acb9..35c4b5bd2d5 100644 --- a/documentapi/src/vespa/documentapi/messagebus/routablefactories51.cpp +++ b/documentapi/src/vespa/documentapi/messagebus/routablefactories51.cpp @@ -1,8 +1,5 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP(".routablefactories51"); - #include "routablefactories51.h" #include <vespa/document/document.h> #include <vespa/documentapi/documentapi.h> diff --git a/documentapi/src/vespa/documentapi/messagebus/routablefactories52.cpp b/documentapi/src/vespa/documentapi/messagebus/routablefactories52.cpp index 491be5d30f2..f9224147453 100644 --- a/documentapi/src/vespa/documentapi/messagebus/routablefactories52.cpp +++ b/documentapi/src/vespa/documentapi/messagebus/routablefactories52.cpp @@ -1,9 +1,6 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. // @author Vegard Sjonfjell #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP(".routablefactories52"); - #include "routablefactories52.h" #include <vespa/document/document.h> #include <vespa/documentapi/documentapi.h> diff --git a/documentapi/src/vespa/documentapi/messagebus/systemstate/urlencoder.cpp b/documentapi/src/vespa/documentapi/messagebus/systemstate/urlencoder.cpp index 94917cc5a1a..85bacbdb8db 100644 --- a/documentapi/src/vespa/documentapi/messagebus/systemstate/urlencoder.cpp +++ b/documentapi/src/vespa/documentapi/messagebus/systemstate/urlencoder.cpp @@ -1,13 +1,9 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> - #include <vespa/vespalib/util/stringfmt.h> #include <vespa/vespalib/stllike/asciistream.h> #include "urlencoder.h" -LOG_SETUP(".urlencoder"); - using namespace documentapi; const string |