mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
mononoke: actually use scuba dataset that's set on the cmd line
Summary:
I added logging in D30805504 (d5e2624fbb
), however it wasn't really logging anything,
because I forgot to pass scuba sample builder to CoreContext (facepalm).
This diff fixes it.
Reviewed By: HarveyHunt
Differential Revision: D30899642
fbshipit-source-id: 6e20f1e84fc96175be8ca7a6f91c0fc61caf8e49
This commit is contained in:
parent
5e45855552
commit
8ca1ef0c5e
@ -385,7 +385,9 @@ fn main(fb: FacebookInit) -> Result<()> {
|
||||
);
|
||||
let matches = app.get_matches(fb)?;
|
||||
let logger = matches.logger();
|
||||
let ctx = CoreContext::new_with_logger(fb, logger.clone());
|
||||
let scuba_sample_builder = matches.scuba_sample_builder();
|
||||
let ctx =
|
||||
SessionContainer::new_with_defaults(fb).new_context(logger.clone(), scuba_sample_builder);
|
||||
|
||||
helpers::block_execute(
|
||||
run_subcmd(fb, ctx, &logger, &matches),
|
||||
|
Loading…
Reference in New Issue
Block a user