diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-10-09 15:41:22 -0400 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-10-12 11:29:43 -0400 |
commit | a8c6928f05eab2bd67162a17fd51ca0efe7efb95 (patch) | |
tree | d6e09cd847865d480e3b7fa7e7826a1b9a73e706 /src/mongo/logger | |
parent | 048756297fbdecba9af3fdd3eeecad4c91a101e9 (diff) | |
download | mongo-a8c6928f05eab2bd67162a17fd51ca0efe7efb95.tar.gz |
SERVER-20752 improve NetworkInterfaceASIO logging
- add a log component for ASIO, make it a subcomponent of Network
- add additional LOG(2), and LOG(3) messages for tracing
- remove a few redundant log messages
A previous version of this patch had a bug where we could access the
state of a freed AsyncOp.
Diffstat (limited to 'src/mongo/logger')
-rw-r--r-- | src/mongo/logger/log_component.cpp | 5 | ||||
-rw-r--r-- | src/mongo/logger/log_component.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/logger/log_component.cpp b/src/mongo/logger/log_component.cpp index 0382abb8692..8f3c82b49b6 100644 --- a/src/mongo/logger/log_component.cpp +++ b/src/mongo/logger/log_component.cpp @@ -81,6 +81,7 @@ LogComponent LogComponent::parent() const { case kDefault: return kNumLogComponents; DECLARE_LOG_COMPONENT_PARENT(kJournal, kStorage); + DECLARE_LOG_COMPONENT_PARENT(kASIO, kNetwork); case kNumLogComponents: return kNumLogComponents; default: @@ -121,6 +122,8 @@ StringData LogComponent::toStringData() const { return createStringData("write"); case kFTDC: return createStringData("ftdc"); + case kASIO: + return createStringData("asio"); case kNumLogComponents: return createStringData("total"); // No default. Compiler should complain if there's a log component that's not handled. @@ -187,6 +190,8 @@ StringData LogComponent::getNameForLog() const { return createStringData("WRITE "); case kFTDC: return createStringData("FTDC "); + case kASIO: + return createStringData("ASIO "); case kNumLogComponents: return createStringData("TOTAL "); // No default. Compiler should complain if there's a log component that's not handled. diff --git a/src/mongo/logger/log_component.h b/src/mongo/logger/log_component.h index 4fdac77e12d..a771e20558a 100644 --- a/src/mongo/logger/log_component.h +++ b/src/mongo/logger/log_component.h @@ -58,6 +58,7 @@ public: kJournal, kWrite, kFTDC, + kASIO, kNumLogComponents }; |