summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2023-03-23 14:28:49 +1300
committerAndrew Bartlett <abartlet@samba.org>2023-03-23 07:16:34 +0000
commitfdb7ec64432daefd3664acde5ae640a440a8f871 (patch)
tree9a80643d7f84b68b288aa604d92a76f09dbce44a /script
parent86b6353644dc9e32d250efffab13ebde7009477d (diff)
downloadsamba-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-xscript/autobuild.py5
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"