Revert DLOG_INFO warnings about RequestContext being overriden
authorMirek Klimos <miro@fb.com>
Sat, 12 Nov 2016 02:17:17 +0000 (18:17 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Sat, 12 Nov 2016 02:23:51 +0000 (18:23 -0800)
Summary: This is causing a log spew on some services, let's remove it until we figure out where the problem is and fix

Differential Revision: D4171379

fbshipit-source-id: 2afdab6917a2498c376559f9171f6e93ab9c8ad7

folly/io/async/Request.h

index a87ec7338b40a655f204ed5ea3ec7d5ecdc91a52..1c97359478774bd4ab3c62c508fbb492c900dfaf 100644 (file)
@@ -115,8 +115,6 @@ class RequestContextScopeGuard {
   // Create a new RequestContext and reset to the original value when
   // this goes out of scope.
   RequestContextScopeGuard() : prev_(RequestContext::saveContext()) {
-    DLOG_IF(INFO, prev_ != nullptr)
-        << "Overriding folly::RequestContext - did you mean to unset it first?";
     RequestContext::create();
   }
 
@@ -124,8 +122,6 @@ class RequestContextScopeGuard {
   // be automatically reset to the original value when this goes out of scope.
   explicit RequestContextScopeGuard(std::shared_ptr<RequestContext> ctx)
       : prev_(RequestContext::setContext(std::move(ctx))) {
-    DLOG_IF(INFO, prev_ != nullptr && prev_.get() != RequestContext::get())
-        << "Overriding folly::RequestContext - did you mean to unset it first?";
   }
 
   ~RequestContextScopeGuard() {