mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
eliminate excessive thousands of lines logging
Summary: all that places logged all list of HgNodeHash Reviewed By: StanislavGlebik Differential Revision: D9242904 fbshipit-source-id: 42a98b04986f2ed432a8956828356bd5b9bcaa88
This commit is contained in:
parent
7acaa4474b
commit
52a9bdd6a5
@ -47,11 +47,9 @@ pub fn resolve(
|
||||
repo: Arc<BlobRepo>,
|
||||
logger: Logger,
|
||||
scuba_logger: ScubaSampleBuilder,
|
||||
heads: Vec<String>,
|
||||
_heads: Vec<String>,
|
||||
bundle2: BoxStream<Bundle2Item, Error>,
|
||||
) -> BoxFuture<Bytes, Error> {
|
||||
info!(logger, "unbundle heads {:?}", heads);
|
||||
|
||||
let resolver = Bundle2Resolver::new(repo, logger, scuba_logger);
|
||||
|
||||
let bundle2 = resolver.resolve_start_and_replycaps(bundle2);
|
||||
|
@ -61,7 +61,6 @@ impl<H: HgCommands + Send + 'static> HgCommandHandler<H> {
|
||||
where
|
||||
S: Stream<Item = Bytes, Error = io::Error> + Send + 'static,
|
||||
{
|
||||
debug!(self.logger, "Got request: {:?}", req);
|
||||
let hgcmds = &self.commands;
|
||||
|
||||
match req {
|
||||
|
@ -281,7 +281,7 @@ impl RepoClient {
|
||||
}
|
||||
|
||||
fn gettreepack_untimed(&self, params: GettreepackArgs) -> BoxStream<Bytes, Error> {
|
||||
info!(self.logger, "gettreepack {:?}", params);
|
||||
debug!(self.logger, "gettreepack");
|
||||
|
||||
if !params.directories.is_empty() {
|
||||
// This param is not used by core hg, don't worry about implementing it now
|
||||
@ -438,7 +438,6 @@ impl HgCommands for RepoClient {
|
||||
fn heads(&self) -> HgCommandRes<HashSet<HgNodeHash>> {
|
||||
// Get a stream of heads and collect them into a HashSet
|
||||
// TODO: directly return stream of heads
|
||||
let logger = self.logger.clone();
|
||||
let mut scuba_logger = self.scuba_logger(ops::HEADS, None);
|
||||
|
||||
self.repo
|
||||
@ -447,7 +446,6 @@ impl HgCommands for RepoClient {
|
||||
.collect()
|
||||
.map(|v| v.into_iter().collect())
|
||||
.from_err()
|
||||
.inspect(move |resp| debug!(logger, "heads response: {:?}", resp))
|
||||
.traced(&self.trace, ops::HEADS, trace_args!())
|
||||
.timed(move |stats, _| {
|
||||
scuba_logger
|
||||
|
Loading…
Reference in New Issue
Block a user