logging: fix compilation error on older C++ compilers
[folly.git] / folly / Executor.cpp
index 42d1f04a37a18f759d04a94be52a8c7c07e22daf..44d1da4a321c1a194252e4488077f7bdf2cd473b 100644 (file)
@@ -27,8 +27,13 @@ void Executor::addWithPriority(Func, int8_t /* priority */) {
       "addWithPriority() is not implemented for this Executor");
 }
 
-void Executor::keepAliveRelease() {
-  LOG(FATAL) << "keepAliveRelease() should not be called for folly::Executors "
-             << "which do not implement getKeepAliveToken()";
+void Executor::keepAliveAcquire() {
+  LOG(FATAL) << __func__ << "() should not be called for folly::Executor types "
+             << "which do not override getKeepAliveToken()";
 }
+
+void Executor::keepAliveRelease() {
+  LOG(FATAL) << __func__ << "() should not be called for folly::Executor types "
+             << "which do not override getKeepAliveToken()";
 }
+} // namespace folly