mongo/bazel/wrapper_hook/wrapper_debug.py
Daniel Moody e54f728ad4 SERVER-103927 switch from scons to bazel (#39284)
GitOrigin-RevId: 698b83c9b64adf5dfe2b670d16052f24342c04e3
2025-07-29 17:50:19 +00:00

15 lines
277 B
Python

import os
import sys
if (
os.environ.get("MONGO_BAZEL_WRAPPER_DEBUG") == "1"
and os.environ.get("MONGO_AUTOCOMPLETE_QUERY") != "1"
):
def wrapper_debug(x):
print("[WRAPPER_HOOK_DEBUG]: " + x, file=sys.stderr)
else:
def wrapper_debug(x):
pass