summaryrefslogtreecommitdiff
path: root/src/mongo/logger
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/logger')
-rw-r--r--src/mongo/logger/logstream_builder.cpp2
-rw-r--r--src/mongo/logger/logstream_builder.h7
-rw-r--r--src/mongo/logger/message_event.h2
3 files changed, 2 insertions, 9 deletions
diff --git a/src/mongo/logger/logstream_builder.cpp b/src/mongo/logger/logstream_builder.cpp
index 1adef55dd6d..1ed0e701c45 100644
--- a/src/mongo/logger/logstream_builder.cpp
+++ b/src/mongo/logger/logstream_builder.cpp
@@ -127,7 +127,7 @@ namespace logger {
if (_os) {
if ( !_baseMessage.empty() ) _baseMessage.push_back(' ');
_baseMessage += _os->str();
- MessageEventEphemeral message(Date_t::now(), _severity, _component, _contextName,
+ MessageEventEphemeral message(curTimeMillis64(), _severity, _component, _contextName,
_baseMessage);
_domain->append(message);
if (_tee) {
diff --git a/src/mongo/logger/logstream_builder.h b/src/mongo/logger/logstream_builder.h
index 638534484ee..7c923d6ece3 100644
--- a/src/mongo/logger/logstream_builder.h
+++ b/src/mongo/logger/logstream_builder.h
@@ -35,7 +35,6 @@
#include "mongo/logger/log_component.h"
#include "mongo/logger/log_severity.h"
#include "mongo/logger/message_log_domain.h"
-#include "mongo/stdx/chrono.h"
#include "mongo/util/exit_code.h"
namespace mongo {
@@ -131,12 +130,6 @@ namespace logger {
LogstreamBuilder& operator<<(unsigned long long x) { stream() << x; return *this; }
LogstreamBuilder& operator<<(bool x) { stream() << x; return *this; }
- template <typename Rep, typename Period>
- LogstreamBuilder& operator<<(stdx::chrono::duration<Rep, Period> d) {
- stream() << d;
- return *this;
- }
-
template <typename T>
LogstreamBuilder& operator<<(const T& x) {
stream() << x.toString();
diff --git a/src/mongo/logger/message_event.h b/src/mongo/logger/message_event.h
index 516af0f3f84..b38e792dcd1 100644
--- a/src/mongo/logger/message_event.h
+++ b/src/mongo/logger/message_event.h
@@ -67,7 +67,7 @@ namespace logger {
_contextName(contextName),
_message(message) {}
- Date_t getDate() const { return _date; }
+ uint64_t getDate() const { return _date; }
LogSeverity getSeverity() const { return _severity; }
LogComponent getComponent() const { return _component; }
StringData getContextName() const { return _contextName; }