diff options
author | Andrew Bartlett <abartlet@samba.org> | 2023-03-23 14:28:49 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2023-03-23 07:16:34 +0000 |
commit | fdb7ec64432daefd3664acde5ae640a440a8f871 (patch) | |
tree | 9a80643d7f84b68b288aa604d92a76f09dbce44a /script | |
parent | 86b6353644dc9e32d250efffab13ebde7009477d (diff) | |
download | samba-fdb7ec64432daefd3664acde5ae640a440a8f871.tar.gz |
script/autobuild: Use python logger to print times on log lines to aid in debugging.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'script')
-rwxr-xr-x | script/autobuild.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/script/autobuild.py b/script/autobuild.py index 492085a5bbb..2af5d6e676d 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -19,12 +19,17 @@ from email.mime.multipart import MIMEMultipart from sysconfig import get_path import platform +import logging + try: from waflib.Build import CACHE_SUFFIX except ImportError: sys.path.insert(0, "./third_party/waf") from waflib.Build import CACHE_SUFFIX +logging.basicConfig(format='%(asctime)s %(message)s') +logger = logging.getLogger('autobuild') +logger.setLevel(logging.INFO) os.environ["PYTHONUNBUFFERED"] = "1" |