summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-11-28 15:32:36 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2016-12-12 02:55:40 +0100
commit5c01e9e85d64a0d19890e448168dc440628e3780 (patch)
treea1f151f96a64010719d8979332d68df74d7e4543 /document
parentf984729ecc3330af39a7f050ca5dfe24a0d401a0 (diff)
No need to include log.h when not logging
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/base/documentid.cpp5
-rw-r--r--document/src/vespa/document/base/globalid.cpp8
-rw-r--r--document/src/vespa/document/base/testdocrepo.cpp3
-rw-r--r--document/src/vespa/document/datatype/annotationreferencedatatype.cpp3
-rw-r--r--document/src/vespa/document/datatype/datatype.cpp1
-rw-r--r--document/src/vespa/document/fieldvalue/annotationreferencefieldvalue.cpp3
-rw-r--r--document/src/vespa/document/fieldvalue/document.cpp3
-rw-r--r--document/src/vespa/document/fieldvalue/predicatefieldvalue.cpp2
-rw-r--r--document/src/vespa/document/predicate/predicate.cpp2
-rw-r--r--document/src/vespa/document/predicate/predicate_builder.cpp2
-rw-r--r--document/src/vespa/document/predicate/predicate_printer.cpp2
-rw-r--r--document/src/vespa/document/predicate/predicate_slime_builder.cpp3
-rw-r--r--document/src/vespa/document/predicate/predicate_slime_visitor.cpp3
-rw-r--r--document/src/vespa/document/repo/configbuilder.cpp3
-rw-r--r--document/src/vespa/document/repo/fixedtyperepo.cpp3
-rw-r--r--document/src/vespa/document/select/bodyfielddetector.cpp11
-rw-r--r--document/src/vespa/document/select/compare.cpp6
-rw-r--r--document/src/vespa/document/serialization/annotationserializer.cpp4
-rw-r--r--document/src/vespa/document/update/addvalueupdate.cpp3
-rw-r--r--document/src/vespa/document/update/removefieldpathupdate.cpp4
-rw-r--r--document/src/vespa/document/util/compressor.cpp2
21 files changed, 6 insertions, 70 deletions
diff --git a/document/src/vespa/document/base/documentid.cpp b/document/src/vespa/document/base/documentid.cpp
index 534a9729b04..90ab5ff6c56 100644
--- a/document/src/vespa/document/base/documentid.cpp
+++ b/document/src/vespa/document/base/documentid.cpp
@@ -1,12 +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>
-LOG_SETUP(".document.document-id");
-
#include "documentid.h"
-
#include <vespa/vespalib/util/md5.h>
#include <vespa/vespalib/objects/nbostream.h>
+#include <ostream>
using vespalib::nbostream;
diff --git a/document/src/vespa/document/base/globalid.cpp b/document/src/vespa/document/base/globalid.cpp
index 440042bdbc0..514f2256c30 100644
--- a/document/src/vespa/document/base/globalid.cpp
+++ b/document/src/vespa/document/base/globalid.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(".globalid");
-
#include <vespa/document/base/globalid.h>
#include <vespa/document/bucket/bucketid.h>
#include <vespa/vespalib/util/exceptions.h>
@@ -29,8 +26,7 @@ getHexVal(char c)
} else if (c >= 'A' && c <= 'F') {
return (c - 'A' + 10);
}
- LOG_ASSERT(validateHex(c));
- abort();
+ assert(validateHex(c));
abort();
}
@@ -92,7 +88,7 @@ GlobalId::parse(const vespalib::stringref & source)
+ "'.", VESPA_STRLOC);
}
if (source.size() != 2 * LENGTH + 7) {
- std::ostringstream ost;
+ vespalib::asciistream ost;
ost << "A gid string representation must be exactly "
<< (2 * LENGTH + 7) << " bytes long. Invalid source: '"
<< source << "'.";
diff --git a/document/src/vespa/document/base/testdocrepo.cpp b/document/src/vespa/document/base/testdocrepo.cpp
index 3988cbe7441..4cc6e36ac43 100644
--- a/document/src/vespa/document/base/testdocrepo.cpp
+++ b/document/src/vespa/document/base/testdocrepo.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.
#include <vespa/fastos/fastos.h>
-#include <vespa/log/log.h>
-LOG_SETUP(".testdocrepo");
-
#include "testdocrepo.h"
#include <vespa/document/config/config-documenttypes.h>
#include <vespa/document/datatype/documenttype.h>
diff --git a/document/src/vespa/document/datatype/annotationreferencedatatype.cpp b/document/src/vespa/document/datatype/annotationreferencedatatype.cpp
index 3a989f0814b..0da571bc4ee 100644
--- a/document/src/vespa/document/datatype/annotationreferencedatatype.cpp
+++ b/document/src/vespa/document/datatype/annotationreferencedatatype.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.
#include <vespa/fastos/fastos.h>
-#include <vespa/log/log.h>
-LOG_SETUP(".annotationreferencedatatype");
-
#include "annotationreferencedatatype.h"
#include <vespa/document/fieldvalue/annotationreferencefieldvalue.h>
diff --git a/document/src/vespa/document/datatype/datatype.cpp b/document/src/vespa/document/datatype/datatype.cpp
index b53162f25ba..caaabf4935a 100644
--- a/document/src/vespa/document/datatype/datatype.cpp
+++ b/document/src/vespa/document/datatype/datatype.cpp
@@ -174,7 +174,6 @@ DataType::operator<(const DataType& other) const
FieldPath::UP
DataType::buildFieldPath(const vespalib::stringref & remainFieldName) const
{
-// LOG(debug, "remainFieldName = %s, dataType=%s", remainFieldName.c_str(), getClass().name());
if ( !remainFieldName.empty() ) {
return onBuildFieldPath(remainFieldName);
}
diff --git a/document/src/vespa/document/fieldvalue/annotationreferencefieldvalue.cpp b/document/src/vespa/document/fieldvalue/annotationreferencefieldvalue.cpp
index fb4b57b2cce..9493996b348 100644
--- a/document/src/vespa/document/fieldvalue/annotationreferencefieldvalue.cpp
+++ b/document/src/vespa/document/fieldvalue/annotationreferencefieldvalue.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.
#include <vespa/fastos/fastos.h>
-#include <vespa/log/log.h>
-LOG_SETUP(".annotationreferencefieldvalue");
-
#include "annotationreferencefieldvalue.h"
using std::ostream;
diff --git a/document/src/vespa/document/fieldvalue/document.cpp b/document/src/vespa/document/fieldvalue/document.cpp
index 6681601ac52..d5210b4693c 100644
--- a/document/src/vespa/document/fieldvalue/document.cpp
+++ b/document/src/vespa/document/fieldvalue/document.cpp
@@ -8,12 +8,10 @@
#include <vespa/document/base/documentid.h>
#include <vespa/document/base/field.h>
#include <vespa/document/fieldvalue/fieldvalue.h>
-#include <fstream>
#include <vespa/document/repo/fixedtyperepo.h>
#include <vespa/document/serialization/vespadocumentdeserializer.h>
#include <vespa/document/serialization/vespadocumentserializer.h>
-#include <vespa/log/log.h>
#include <vespa/vespalib/objects/nbostream.h>
using vespalib::nbostream;
@@ -21,7 +19,6 @@ using vespalib::make_string;
using vespalib::IllegalArgumentException;
using vespalib::IllegalStateException;
-LOG_SETUP(".document.fieldvalue.document");
namespace document {
namespace {
diff --git a/document/src/vespa/document/fieldvalue/predicatefieldvalue.cpp b/document/src/vespa/document/fieldvalue/predicatefieldvalue.cpp
index 1d1d0b03b2f..b5c7bad703c 100644
--- a/document/src/vespa/document/fieldvalue/predicatefieldvalue.cpp
+++ b/document/src/vespa/document/fieldvalue/predicatefieldvalue.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/log/log.h>
-LOG_SETUP(".predicatefieldvalue");
#include <vespa/fastos/fastos.h>
#include "predicatefieldvalue.h"
diff --git a/document/src/vespa/document/predicate/predicate.cpp b/document/src/vespa/document/predicate/predicate.cpp
index b690a8e88d1..c3ae5fb8fb4 100644
--- a/document/src/vespa/document/predicate/predicate.cpp
+++ b/document/src/vespa/document/predicate/predicate.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/log/log.h>
-LOG_SETUP(".predicate");
#include <vespa/fastos/fastos.h>
#include "predicate.h"
diff --git a/document/src/vespa/document/predicate/predicate_builder.cpp b/document/src/vespa/document/predicate/predicate_builder.cpp
index 98bc05eab29..55a6ce4b3ce 100644
--- a/document/src/vespa/document/predicate/predicate_builder.cpp
+++ b/document/src/vespa/document/predicate/predicate_builder.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/log/log.h>
-LOG_SETUP(".predicate_builder");
#include <vespa/fastos/fastos.h>
#include "predicate.h"
diff --git a/document/src/vespa/document/predicate/predicate_printer.cpp b/document/src/vespa/document/predicate/predicate_printer.cpp
index c8519866d11..72e4e0f5115 100644
--- a/document/src/vespa/document/predicate/predicate_printer.cpp
+++ b/document/src/vespa/document/predicate/predicate_printer.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/log/log.h>
-LOG_SETUP(".predicate_printer");
#include <vespa/fastos/fastos.h>
#include "predicate.h"
diff --git a/document/src/vespa/document/predicate/predicate_slime_builder.cpp b/document/src/vespa/document/predicate/predicate_slime_builder.cpp
index 18fa67d7342..e8740018679 100644
--- a/document/src/vespa/document/predicate/predicate_slime_builder.cpp
+++ b/document/src/vespa/document/predicate/predicate_slime_builder.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.
-#include <vespa/log/log.h>
-LOG_SETUP(".predicate_slime_builder");
#include <vespa/fastos/fastos.h>
-
#include "predicate.h"
#include "predicate_slime_builder.h"
diff --git a/document/src/vespa/document/predicate/predicate_slime_visitor.cpp b/document/src/vespa/document/predicate/predicate_slime_visitor.cpp
index cddd2a1c2c7..81cdd0606ad 100644
--- a/document/src/vespa/document/predicate/predicate_slime_visitor.cpp
+++ b/document/src/vespa/document/predicate/predicate_slime_visitor.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.
-#include <vespa/log/log.h>
-LOG_SETUP(".predicate_slime_visitor");
#include <vespa/fastos/fastos.h>
-
#include "predicate.h"
#include "predicate_slime_visitor.h"
#include <vespa/vespalib/data/slime/inspector.h>
diff --git a/document/src/vespa/document/repo/configbuilder.cpp b/document/src/vespa/document/repo/configbuilder.cpp
index 9b1701b8f41..bbb03cd8ce3 100644
--- a/document/src/vespa/document/repo/configbuilder.cpp
+++ b/document/src/vespa/document/repo/configbuilder.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.
#include <vespa/fastos/fastos.h>
-#include <vespa/log/log.h>
-LOG_SETUP(".configbuilder");
-
#include "configbuilder.h"
namespace document {
diff --git a/document/src/vespa/document/repo/fixedtyperepo.cpp b/document/src/vespa/document/repo/fixedtyperepo.cpp
index e6914f6cc06..414dc366c61 100644
--- a/document/src/vespa/document/repo/fixedtyperepo.cpp
+++ b/document/src/vespa/document/repo/fixedtyperepo.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.
#include <vespa/fastos/fastos.h>
-#include <vespa/log/log.h>
-LOG_SETUP(".fixedtyperepo");
-
#include "fixedtyperepo.h"
namespace document {
diff --git a/document/src/vespa/document/select/bodyfielddetector.cpp b/document/src/vespa/document/select/bodyfielddetector.cpp
index 873d3a77808..4a749a64b93 100644
--- a/document/src/vespa/document/select/bodyfielddetector.cpp
+++ b/document/src/vespa/document/select/bodyfielddetector.cpp
@@ -1,23 +1,16 @@
// 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(".bodyfielddetector");
-
#include "bodyfielddetector.h"
-
#include <vespa/document/base/exceptions.h>
#include <vespa/document/repo/documenttyperepo.h>
#include <vespa/document/datatype/documenttype.h>
#include <vespa/vespalib/util/closure.h>
#include "valuenode.h"
-namespace document
-{
-
-namespace select
-{
+namespace document {
+namespace select {
void
BodyFieldDetector::detectFieldType(const FieldValueNode *expr,
diff --git a/document/src/vespa/document/select/compare.cpp b/document/src/vespa/document/select/compare.cpp
index 473c7f2c810..47f9443a85a 100644
--- a/document/src/vespa/document/select/compare.cpp
+++ b/document/src/vespa/document/select/compare.cpp
@@ -2,9 +2,7 @@
#include <vespa/fastos/fastos.h>
#include "compare.h"
-#include <iomanip>
-#include <vespa/log/log.h>
-#include <sstream>
+#include <ostream>
#include <vespa/document/datatype/datatype.h>
#include "valuenode.h"
#include <vespa/document/fieldvalue/document.h>
@@ -12,8 +10,6 @@
#include "compare.h"
#include "visitor.h"
-LOG_SETUP(".document.select.compare");
-
namespace document {
namespace select {
diff --git a/document/src/vespa/document/serialization/annotationserializer.cpp b/document/src/vespa/document/serialization/annotationserializer.cpp
index 16fc0ffe5df..e78cea83d00 100644
--- a/document/src/vespa/document/serialization/annotationserializer.cpp
+++ b/document/src/vespa/document/serialization/annotationserializer.cpp
@@ -1,11 +1,7 @@
// 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(".annotationserializer");
-
#include "annotationserializer.h"
-
#include "util.h"
#include "vespadocumentserializer.h"
#include <vespa/document/annotation/alternatespanlist.h>
diff --git a/document/src/vespa/document/update/addvalueupdate.cpp b/document/src/vespa/document/update/addvalueupdate.cpp
index 10a0e76872f..090f4ea1eb6 100644
--- a/document/src/vespa/document/update/addvalueupdate.cpp
+++ b/document/src/vespa/document/update/addvalueupdate.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(".document.addvalueupdate");
-
#include <vespa/document/base/field.h>
#include <vespa/document/datatype/arraydatatype.h>
#include <vespa/document/datatype/weightedsetdatatype.h>
diff --git a/document/src/vespa/document/update/removefieldpathupdate.cpp b/document/src/vespa/document/update/removefieldpathupdate.cpp
index 1cda533e414..6d75e0b4e45 100644
--- a/document/src/vespa/document/update/removefieldpathupdate.cpp
+++ b/document/src/vespa/document/update/removefieldpathupdate.cpp
@@ -3,10 +3,6 @@
#include <vespa/document/fieldvalue/fieldvalues.h>
#include <vespa/document/select/parser.h>
#include <vespa/document/update/removefieldpathupdate.h>
-#include <vespa/log/log.h>
-
-LOG_SETUP(".document.update.fieldpathupdate");
-
namespace document {
diff --git a/document/src/vespa/document/util/compressor.cpp b/document/src/vespa/document/util/compressor.cpp
index 003015d5212..1f4a8228032 100644
--- a/document/src/vespa/document/util/compressor.cpp
+++ b/document/src/vespa/document/util/compressor.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(".document.compressor");
#include <vespa/document/util/compressor.h>
#include <vespa/vespalib/util/memory.h>
#include <vespa/vespalib/util/linkedptr.h>