X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=notmuch-git.py;h=5475d0dbd26328da380d9ec20994f395c06c6667;hb=a85c82f99a4a8971a057c4379aebf111439a1e52;hp=ce3c07bb4b63f1cdb50149d8190e36e98d6d0e1b;hpb=14ac68ae112437fd25d7e76f8c78523a01d83804;p=notmuch diff --git a/notmuch-git.py b/notmuch-git.py index ce3c07bb..5475d0db 100644 --- a/notmuch-git.py +++ b/notmuch-git.py @@ -836,6 +836,10 @@ if __name__ == '__main__': level = getattr(_logging, args.log_level.upper()) _LOG.setLevel(level) + # for test suite + for var in ['NMBGIT', 'NMBPREFIX', 'NOTMUCH_PROFILE', 'NOTMUCH_CONFIG' ]: + _LOG.debug('env {:s} = {:s}'.format(var, _os.getenv(var,'%None%'))) + if not getattr(args, 'func', None): parser.print_usage() _sys.exit(1)