summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildscripts/resmokelib/parser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/parser.py b/buildscripts/resmokelib/parser.py
index daff8aab62a..9359782ba96 100644
--- a/buildscripts/resmokelib/parser.py
+++ b/buildscripts/resmokelib/parser.py
@@ -725,6 +725,11 @@ def _update_config_vars(values): # pylint: disable=too-many-statements,too-many
def _get_logging_config(pathname):
"""Read YAML configuration from 'pathname' how to log tests and fixtures."""
try:
+ # If the user provides a full valid path to a logging config
+ # we don't need to search LOGGER_DIR for the file.
+ if os.path.exists(pathname):
+ return utils.load_yaml_file(pathname).pop("logging")
+
root = os.path.abspath(_config.LOGGER_DIR)
files = os.listdir(root)
for filename in files: