summaryrefslogtreecommitdiff
path: root/src/mongo/util
diff options
context:
space:
mode:
authorMatt Kangas <matt.kangas@mongodb.com>2014-10-14 00:06:21 -0400
committerMatt Kangas <matt.kangas@mongodb.com>2014-10-14 13:42:51 -0400
commita3d8e9a0c447c40aff9eb7fcbd94119737dc971c (patch)
treee0d4989e2a975720fb353fff63d8ff81ffe6e8aa /src/mongo/util
parentb51d7e60c5eecc22f72727610459c009ffaac2b0 (diff)
downloadmongo-a3d8e9a0c447c40aff9eb7fcbd94119737dc971c.tar.gz
SERVER-15592 set default log component for all cpp
Diffstat (limited to 'src/mongo/util')
-rw-r--r--src/mongo/util/alignedbuilder.cpp2
-rw-r--r--src/mongo/util/assert_util.cpp2
-rw-r--r--src/mongo/util/concurrency/task.cpp2
-rw-r--r--src/mongo/util/concurrency/thread_pool.cpp2
-rw-r--r--src/mongo/util/exception_filter_win32.cpp2
-rw-r--r--src/mongo/util/fail_point.cpp2
-rw-r--r--src/mongo/util/fail_point_test.cpp2
-rw-r--r--src/mongo/util/file.cpp2
-rw-r--r--src/mongo/util/file_allocator_bench.cpp2
-rw-r--r--src/mongo/util/log.cpp2
-rw-r--r--src/mongo/util/logfile.cpp2
-rw-r--r--src/mongo/util/mmap.cpp2
-rw-r--r--src/mongo/util/mmap_posix.cpp2
-rw-r--r--src/mongo/util/mmap_win.cpp2
-rw-r--r--src/mongo/util/net/ssl_expiration.cpp2
-rw-r--r--src/mongo/util/net/ssl_options.cpp2
-rw-r--r--src/mongo/util/ntservice.cpp2
-rw-r--r--src/mongo/util/password.cpp2
-rw-r--r--src/mongo/util/platform_init.cpp2
-rw-r--r--src/mongo/util/processinfo.cpp2
-rw-r--r--src/mongo/util/processinfo_darwin.cpp2
-rw-r--r--src/mongo/util/processinfo_freebsd.cpp2
-rw-r--r--src/mongo/util/processinfo_linux2.cpp2
-rw-r--r--src/mongo/util/processinfo_openbsd5.cpp2
-rw-r--r--src/mongo/util/processinfo_sunos5.cpp2
-rw-r--r--src/mongo/util/processinfo_win32.cpp2
-rw-r--r--src/mongo/util/progress_meter.cpp2
-rw-r--r--src/mongo/util/signal_handlers.cpp2
-rw-r--r--src/mongo/util/signal_handlers_synchronous.cpp2
-rw-r--r--src/mongo/util/stacktrace_posix.cpp2
-rw-r--r--src/mongo/util/stacktrace_win.cpp2
-rw-r--r--src/mongo/util/string_map_test.cpp2
-rw-r--r--src/mongo/util/time_support_test.cpp2
-rw-r--r--src/mongo/util/version_reporting.cpp2
34 files changed, 68 insertions, 0 deletions
diff --git a/src/mongo/util/alignedbuilder.cpp b/src/mongo/util/alignedbuilder.cpp
index ae557b26edd..41c0efb8ae9 100644
--- a/src/mongo/util/alignedbuilder.cpp
+++ b/src/mongo/util/alignedbuilder.cpp
@@ -28,6 +28,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h"
#include "mongo/util/alignedbuilder.h"
diff --git a/src/mongo/util/assert_util.cpp b/src/mongo/util/assert_util.cpp
index 403049fd15b..7133dec63bb 100644
--- a/src/mongo/util/assert_util.cpp
+++ b/src/mongo/util/assert_util.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include "mongo/util/assert_util.h"
diff --git a/src/mongo/util/concurrency/task.cpp b/src/mongo/util/concurrency/task.cpp
index 6fa843c3131..e992b61ded9 100644
--- a/src/mongo/util/concurrency/task.cpp
+++ b/src/mongo/util/concurrency/task.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h"
#include <boost/thread/condition.hpp>
diff --git a/src/mongo/util/concurrency/thread_pool.cpp b/src/mongo/util/concurrency/thread_pool.cpp
index ffeecda1be4..28ea8b7236f 100644
--- a/src/mongo/util/concurrency/thread_pool.cpp
+++ b/src/mongo/util/concurrency/thread_pool.cpp
@@ -28,6 +28,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h"
#include "mongo/util/concurrency/thread_pool.h"
diff --git a/src/mongo/util/exception_filter_win32.cpp b/src/mongo/util/exception_filter_win32.cpp
index 85b65d7d253..e95d0f49f59 100644
--- a/src/mongo/util/exception_filter_win32.cpp
+++ b/src/mongo/util/exception_filter_win32.cpp
@@ -26,6 +26,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#ifdef _WIN32
#include <ostream>
diff --git a/src/mongo/util/fail_point.cpp b/src/mongo/util/fail_point.cpp
index 09ad57e7423..719d9a5db1c 100644
--- a/src/mongo/util/fail_point.cpp
+++ b/src/mongo/util/fail_point.cpp
@@ -26,6 +26,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/util/fail_point.h"
#include "mongo/util/mongoutils/str.h"
diff --git a/src/mongo/util/fail_point_test.cpp b/src/mongo/util/fail_point_test.cpp
index 611407dbf24..4467cd4c422 100644
--- a/src/mongo/util/fail_point_test.cpp
+++ b/src/mongo/util/fail_point_test.cpp
@@ -26,6 +26,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include <boost/thread/thread.hpp>
#include <stdexcept>
#include <string>
diff --git a/src/mongo/util/file.cpp b/src/mongo/util/file.cpp
index c3a8a1c2931..ab070ab14ae 100644
--- a/src/mongo/util/file.cpp
+++ b/src/mongo/util/file.cpp
@@ -25,6 +25,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/util/file.h"
#include <boost/cstdint.hpp>
diff --git a/src/mongo/util/file_allocator_bench.cpp b/src/mongo/util/file_allocator_bench.cpp
index 53b68bbd22a..b41de678338 100644
--- a/src/mongo/util/file_allocator_bench.cpp
+++ b/src/mongo/util/file_allocator_bench.cpp
@@ -26,6 +26,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include <algorithm>
diff --git a/src/mongo/util/log.cpp b/src/mongo/util/log.cpp
index bd0af52aac7..4d753bd92e1 100644
--- a/src/mongo/util/log.cpp
+++ b/src/mongo/util/log.cpp
@@ -25,6 +25,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include "mongo/util/log.h"
diff --git a/src/mongo/util/logfile.cpp b/src/mongo/util/logfile.cpp
index e4caa418083..dd6e50533f4 100644
--- a/src/mongo/util/logfile.cpp
+++ b/src/mongo/util/logfile.cpp
@@ -28,6 +28,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h"
#include "mongo/util/logfile.h"
diff --git a/src/mongo/util/mmap.cpp b/src/mongo/util/mmap.cpp
index 4ebf58f21c8..392b873f3c1 100644
--- a/src/mongo/util/mmap.cpp
+++ b/src/mongo/util/mmap.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h"
#include "mongo/util/mmap.h"
diff --git a/src/mongo/util/mmap_posix.cpp b/src/mongo/util/mmap_posix.cpp
index 20b221a885c..dabccfc093a 100644
--- a/src/mongo/util/mmap_posix.cpp
+++ b/src/mongo/util/mmap_posix.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h"
#include <errno.h>
diff --git a/src/mongo/util/mmap_win.cpp b/src/mongo/util/mmap_win.cpp
index 19479cd3452..996f155b11f 100644
--- a/src/mongo/util/mmap_win.cpp
+++ b/src/mongo/util/mmap_win.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h"
#include "mongo/db/concurrency/d_concurrency.h"
diff --git a/src/mongo/util/net/ssl_expiration.cpp b/src/mongo/util/net/ssl_expiration.cpp
index 0efe303ba4b..733e0a01c10 100644
--- a/src/mongo/util/net/ssl_expiration.cpp
+++ b/src/mongo/util/net/ssl_expiration.cpp
@@ -25,6 +25,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/util/net/ssl_expiration.h"
#include <string>
diff --git a/src/mongo/util/net/ssl_options.cpp b/src/mongo/util/net/ssl_options.cpp
index e786cb63f38..f8fda92dbba 100644
--- a/src/mongo/util/net/ssl_options.cpp
+++ b/src/mongo/util/net/ssl_options.cpp
@@ -25,6 +25,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include "mongo/util/net/ssl_options.h"
diff --git a/src/mongo/util/ntservice.cpp b/src/mongo/util/ntservice.cpp
index 0ebdf808dac..163bdc03861 100644
--- a/src/mongo/util/ntservice.cpp
+++ b/src/mongo/util/ntservice.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#if defined(_WIN32)
#include "mongo/platform/basic.h"
diff --git a/src/mongo/util/password.cpp b/src/mongo/util/password.cpp
index 493f30dd4ea..a894903e7b3 100644
--- a/src/mongo/util/password.cpp
+++ b/src/mongo/util/password.cpp
@@ -26,6 +26,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h"
#include "mongo/util/password.h"
diff --git a/src/mongo/util/platform_init.cpp b/src/mongo/util/platform_init.cpp
index d5de169b2bd..9eda6f3821c 100644
--- a/src/mongo/util/platform_init.cpp
+++ b/src/mongo/util/platform_init.cpp
@@ -26,6 +26,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#ifdef _WIN32
diff --git a/src/mongo/util/processinfo.cpp b/src/mongo/util/processinfo.cpp
index 8d0265fc8ca..b062e0a3885 100644
--- a/src/mongo/util/processinfo.cpp
+++ b/src/mongo/util/processinfo.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h"
#include "mongo/base/init.h"
diff --git a/src/mongo/util/processinfo_darwin.cpp b/src/mongo/util/processinfo_darwin.cpp
index 2c674f66322..43cd0edd85c 100644
--- a/src/mongo/util/processinfo_darwin.cpp
+++ b/src/mongo/util/processinfo_darwin.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h"
#include "mongo/util/processinfo.h"
#include "mongo/util/log.h"
diff --git a/src/mongo/util/processinfo_freebsd.cpp b/src/mongo/util/processinfo_freebsd.cpp
index 208b3905c14..84d792732dd 100644
--- a/src/mongo/util/processinfo_freebsd.cpp
+++ b/src/mongo/util/processinfo_freebsd.cpp
@@ -25,6 +25,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include <cstdlib>
#include <string>
diff --git a/src/mongo/util/processinfo_linux2.cpp b/src/mongo/util/processinfo_linux2.cpp
index 777ad2e5890..7ddeaaa538a 100644
--- a/src/mongo/util/processinfo_linux2.cpp
+++ b/src/mongo/util/processinfo_linux2.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include <malloc.h>
#include <iostream>
#include <stdio.h>
diff --git a/src/mongo/util/processinfo_openbsd5.cpp b/src/mongo/util/processinfo_openbsd5.cpp
index e995f14ce9f..e3d3e158749 100644
--- a/src/mongo/util/processinfo_openbsd5.cpp
+++ b/src/mongo/util/processinfo_openbsd5.cpp
@@ -25,6 +25,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include <cstdlib>
#include <string>
diff --git a/src/mongo/util/processinfo_sunos5.cpp b/src/mongo/util/processinfo_sunos5.cpp
index 4acbf0aad2f..e45ee557b4e 100644
--- a/src/mongo/util/processinfo_sunos5.cpp
+++ b/src/mongo/util/processinfo_sunos5.cpp
@@ -25,6 +25,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include <boost/filesystem.hpp>
#include <fstream>
#include <iostream>
diff --git a/src/mongo/util/processinfo_win32.cpp b/src/mongo/util/processinfo_win32.cpp
index 0b5a6a147a5..5581e0c245e 100644
--- a/src/mongo/util/processinfo_win32.cpp
+++ b/src/mongo/util/processinfo_win32.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h"
#include <iostream>
diff --git a/src/mongo/util/progress_meter.cpp b/src/mongo/util/progress_meter.cpp
index 64d4dd1d828..85594e1ab02 100644
--- a/src/mongo/util/progress_meter.cpp
+++ b/src/mongo/util/progress_meter.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/pch.h" // needed for log.h
#include "mongo/util/progress_meter.h"
diff --git a/src/mongo/util/signal_handlers.cpp b/src/mongo/util/signal_handlers.cpp
index eb9674d7c0e..7e638664460 100644
--- a/src/mongo/util/signal_handlers.cpp
+++ b/src/mongo/util/signal_handlers.cpp
@@ -26,6 +26,8 @@
* it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include "mongo/util/signal_handlers.h"
diff --git a/src/mongo/util/signal_handlers_synchronous.cpp b/src/mongo/util/signal_handlers_synchronous.cpp
index c93e689515c..40149e310fc 100644
--- a/src/mongo/util/signal_handlers_synchronous.cpp
+++ b/src/mongo/util/signal_handlers_synchronous.cpp
@@ -26,6 +26,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include "mongo/util/signal_handlers_synchronous.h"
diff --git a/src/mongo/util/stacktrace_posix.cpp b/src/mongo/util/stacktrace_posix.cpp
index 6b2194064ce..e7a02154ee6 100644
--- a/src/mongo/util/stacktrace_posix.cpp
+++ b/src/mongo/util/stacktrace_posix.cpp
@@ -25,6 +25,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include "mongo/util/stacktrace.h"
diff --git a/src/mongo/util/stacktrace_win.cpp b/src/mongo/util/stacktrace_win.cpp
index aed152646de..b22bb542b67 100644
--- a/src/mongo/util/stacktrace_win.cpp
+++ b/src/mongo/util/stacktrace_win.cpp
@@ -25,6 +25,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include "mongo/util/stacktrace.h"
diff --git a/src/mongo/util/string_map_test.cpp b/src/mongo/util/string_map_test.cpp
index db3f85c0e35..4b1c320b818 100644
--- a/src/mongo/util/string_map_test.cpp
+++ b/src/mongo/util/string_map_test.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/unittest/unittest.h"
#include "mongo/platform/random.h"
diff --git a/src/mongo/util/time_support_test.cpp b/src/mongo/util/time_support_test.cpp
index 1709295dcbd..56af1a5eab2 100644
--- a/src/mongo/util/time_support_test.cpp
+++ b/src/mongo/util/time_support_test.cpp
@@ -25,6 +25,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include <cstdlib>
#include <ctime>
#include <string>
diff --git a/src/mongo/util/version_reporting.cpp b/src/mongo/util/version_reporting.cpp
index 15f5acd8c91..e7019c67a89 100644
--- a/src/mongo/util/version_reporting.cpp
+++ b/src/mongo/util/version_reporting.cpp
@@ -27,6 +27,8 @@
* then also delete it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include "mongo/util/version_reporting.h"