[Bug 6110] New: excessive logging to blackbox.log

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Tue Apr 2 17:10:06 EDT 2019


            Bug ID: 6110
           Summary: excessive logging to blackbox.log
           Product: Mercurial
           Version: 4.9
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: blackbox
          Assignee: bugzilla at mercurial-scm.org
          Reporter: mplamann at janestreet.com
                CC: mercurial-devel at mercurial-scm.org

Created attachment 2039
  --> https://bz.mercurial-scm.org/attachment.cgi?id=2039&action=edit
Blackbox output when running via chg

Beginning in hg 4.9, a lot of extra data is being written to the blackbox.log
file. This makes it difficult to read through a blackbox, and makes each log
entry take up much more space on disk.

In 4.8 and before, running 

$ HGRCPATH= hg log -r . --config extensions.blackbox=

would output something like this in the blackbox:

> log -r .
> log -r . exited 0 after 0.94 seconds

Now in 4.9, extra lines are printed out for each command, for each extension
that is enabled. 

$ HGRCPATH= hg log -r . --config extensions.blackbox=

now outputs something like this in the blackbox:

>   > reposetup for blackbox took 33.86 us
> > all reposetup took 9.248 ms
> log -r . --config 'extensions.blackbox='
> log -r . --config 'extensions.blackbox=' exited 0 after 0.05 seconds

The lines about extensions setup seem like debugging output that should not be
enabled by default. This example is small, but this gets noisier as more
extensions are enabled.

The problem gets far worse when chg is used. This command:

$ HGRCPATH= chg log -r . --config extensions.blackbox=

outputs 55 lines to the blackbox.log (an example is attached)

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Mercurial-devel mailing list