Skip to content

Commit

Permalink
Use FB_LOG_EVERY_MS in OSS
Browse files Browse the repository at this point in the history
  • Loading branch information
mszabo-wikia committed Dec 11, 2024
1 parent 8cbae23 commit 2c65824
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mcrouter/CarbonRouterInstance-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#include <folly/io/async/EventBase.h>
#include <folly/json/DynamicConverter.h>

#ifndef MCROUTER_OSS_BUILD
#include <common/logging/logging.h>
#endif

#include "mcrouter/AsyncWriter.h"
#include "mcrouter/CarbonRouterInstanceBase.h"
Expand Down Expand Up @@ -131,7 +133,11 @@ CarbonRouterInstance<RouterInfo>* CarbonRouterInstance<RouterInfo>::createRaw(

// Deleter is only called if unique_ptr::get() returns non-null.
auto deleter = [](CarbonRouterInstance<RouterInfo>* inst) {
#ifdef MCROUTER_OSS_BUILD
FB_LOG_EVERY_MS(WARNING, 10000) << "Destroying CarbonRouterInstance";
#else
LOG_EVERY_MS(WARNING, 10000) << "Destroying CarbonRouterInstance";
#endif
delete inst;
};
auto router =
Expand Down

0 comments on commit 2c65824

Please sign in to comment.