Skip to content

Commit 4cf5b8d

Browse files
committed
CXX-85 Strip server specific logging and default driver to not log
1 parent 7c18d9e commit 4cf5b8d

25 files changed

+18
-1627
lines changed

src/SConscript.client

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,12 @@ clientSourceBasic = [
8181
'mongo/db/json.cpp',
8282
'mongo/db/dbmessage.cpp',
8383
'mongo/db/server_options.cpp',
84-
'mongo/logger/console.cpp',
8584
'mongo/logger/log_manager.cpp',
8685
'mongo/logger/log_severity.cpp',
8786
'mongo/logger/logger.cpp',
8887
'mongo/logger/logstream_builder.cpp',
8988
'mongo/logger/message_event_utf8_encoder.cpp',
9089
'mongo/logger/message_log_domain.cpp',
91-
'mongo/logger/ramlog.cpp',
92-
'mongo/logger/rotatable_file_manager.cpp',
93-
'mongo/logger/rotatable_file_writer.cpp',
9490
'mongo/platform/process_id.cpp',
9591
'mongo/platform/random.cpp',
9692
'mongo/util/assert_util.cpp',
@@ -199,8 +195,6 @@ clientHeaders = [
199195
'mongo/logger/logstream_builder.h',
200196
'mongo/logger/message_event.h',
201197
'mongo/logger/message_log_domain.h',
202-
'mongo/logger/rotatable_file_manager.h',
203-
'mongo/logger/rotatable_file_writer.h',
204198
'mongo/logger/tee.h',
205199
'mongo/platform/atomic_intrinsics.h',
206200
'mongo/platform/atomic_intrinsics_gcc_generic.h',

src/mongo/SConscript

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ unittests = [
5353
'dbtests/mock_dbclient_conn_test',
5454
'dbtests/mock_replica_set_test',
5555
'dbtests/replica_set_monitor_test',
56-
'logger/console_test',
5756
'logger/log_test',
58-
'logger/rotatable_file_writer_test',
5957
'platform/atomic_word_test',
6058
'platform/process_id_test',
6159
'platform/random_test',

src/mongo/base/string_data.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#include <limits>
2424
#include <string>
2525

26+
#include "mongo/client/export_macros.h"
27+
2628
namespace mongo {
2729

2830
/**
@@ -38,7 +40,7 @@ namespace mongo {
3840
* + Because string data can be used to pass a substring around, one should never assume a
3941
* rawData() terminates with a null.
4042
*/
41-
class StringData {
43+
class MONGO_CLIENT_API StringData {
4244
public:
4345

4446
/** Constructs an empty string data */
@@ -177,7 +179,7 @@ namespace mongo {
177179
return lhs.compare(rhs) >= 0;
178180
}
179181

180-
std::ostream& operator<<(std::ostream& stream, const StringData& value);
182+
MONGO_CLIENT_API std::ostream& MONGO_CLIENT_FUNC operator<<(std::ostream& stream, const StringData& value);
181183

182184
} // namespace mongo
183185

src/mongo/logger/console.cpp

Lines changed: 0 additions & 242 deletions
This file was deleted.

src/mongo/logger/console.h

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)