mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
eden: allow buck v2-compatible log category in log test
Summary: Buck v2 builds from the root of the repo, not the current cell. This means that the inferred logger name ends up being different. We're going to need to fix this generally because otherwise it'll change logger names for everyone (I'm tracking this in T93776519), but in the interest of not having one Eden test arbitrarily failing on Buck v2 let's update this with a workaround for now. Reviewed By: genevievehelsel Differential Revision: D29270388 fbshipit-source-id: 6968d9b6195a5eed7bd4018b161e12d88f78a421
This commit is contained in:
parent
7cf93a723f
commit
f747bef553
@ -227,6 +227,11 @@ TEST_F(PeriodicTaskTest, slowTask) {
|
||||
.getCategory("eden/fs/service/PeriodicTask")
|
||||
->addHandler(logHandler);
|
||||
|
||||
// TODO(T93776519) remove once Buck v2 strips the fbcode prefix.
|
||||
folly::LoggerDB::get()
|
||||
.getCategory("fbcode/eden/fs/service/PeriodicTask")
|
||||
->addHandler(logHandler);
|
||||
|
||||
// Schedule a slow periodic task.
|
||||
// We test to make sure that log messages are generated about the fact that it
|
||||
// runs slowly.
|
||||
|
Loading…
Reference in New Issue
Block a user