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:
Stanislau Hlebik 2021-09-13 05:37:23 -07:00 committed by Facebook GitHub Bot
parent 5e45855552
commit 8ca1ef0c5e

View File

@ -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),