diff -r a8d8cdafe29c -r d3a9036d9ae9 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Wed Mar 21 09:56:41 2018 -0700 +++ b/mercurial/debugcommands.py Tue Mar 13 11:20:07 2018 -0700 @@ -2839,9 +2839,13 @@ r'loggingname': b's', r'loggingopts': { r'logdata': True, + r'logdataapis': False, }, } + if ui.debugflag: + openerargs[r'loggingopts'][r'logdataapis'] = True + opener = urlmod.opener(ui, authinfo, **openerargs) if opts['peer'] == 'raw':