This is an archive of the discontinued Mercurial Phabricator instance.

undo: add Scuba logging
ClosedPublic

Authored by felixmerk on Aug 11 2017, 7:18 PM.
Tags
None
Subscribers

Details

Reviewers
quark
Group Reviewers
Restricted Project
Commits
rFBHGX433ee7863fa7: undo: add Scuba logging
Summary

Adds scuba logging to dev command timers so we can see how often some seemingly
unlikely edge (error) cases happen. Once we are confident that hg undo is
stable we can get rid of these logs. This is specifically for things that
don't loudly fail (since the user shouldn't care about them) but we still would
like to know about. Note that
[sampling]
key.undo=perfpipe_dev_command_timers
is needed in an hgrc file for this to work.

Test: deleted gap file, ran undo and confirmed error was noted in dev command
timers

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

felixmerk created this revision.Aug 11 2017, 7:18 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptAug 11 2017, 7:18 PM
quark accepted this revision.Aug 15 2017, 2:58 PM
quark added a subscriber: quark.

It seems we might want a general purposed framework to log all exceptions.

This revision is now accepted and ready to land.Aug 15 2017, 2:58 PM
stash added a subscriber: stash.Aug 16 2017, 3:26 AM
stash added inline comments.
hgext3rd/undo.py
126

Scuba is fb-internal, so I'd say that just using ui.log(...) is fine.

This revision was automatically updated to reflect the committed changes.