Fixing opt-asan/ubsan fail for folly contbuild
authorJonathan Kron <jkron@fb.com>
Wed, 14 Jun 2017 15:46:15 +0000 (08:46 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 14 Jun 2017 15:50:22 +0000 (08:50 -0700)
Summary: Flag caused compilation error on unused param, asserts optimized out in opt-asan/ubsan builds.  Replaced with DCHECK as per meyering's advice.

Reviewed By: meyering

Differential Revision: D5246089

fbshipit-source-id: dc0abda91f900dd98af31410f4667c52404997f5

folly/experimental/logging/LogStreamProcessor.cpp

index e70df787fa8e3af2522196b3e4c03f3e5abd949e..84c8e0d6882e49ee23cf890784f889690fcd724a 100644 (file)
@@ -42,7 +42,7 @@ void LogStreamProcessor::operator&(LogStream&& stream) noexcept {
   // no streaming arguments were supplied to the logging macro.
   // Therefore we don't bother calling extractMessageString(stream),
   // and just directly use message_.
-  assert(stream.empty());
+  DCHECK(stream.empty());
 
   category_->processMessage(LogMessage{
       category_, level_, filename_, lineNumber_, std::move(message_)});