summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2019-01-15 12:40:09 -0500
committerMathew Robinson <chasinglogic@gmail.com>2019-01-15 15:12:46 -0500
commit78a8fa36593cc0c429ffe10e07ccc33f7ce81d27 (patch)
tree3711db749afb0d0216dfd1d4a2c0e0e9313bbff9
parent7822bac17b8f166af4f02a339ed81a7ebb19060f (diff)
downloadmongo-78a8fa36593cc0c429ffe10e07ccc33f7ce81d27.tar.gz
SERVER-39009 Make buildlogger credentials location configurable
-rw-r--r--buildscripts/resmokelib/logging/buildlogger.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/logging/buildlogger.py b/buildscripts/resmokelib/logging/buildlogger.py
index c4697574d4f..a6aec6af20e 100644
--- a/buildscripts/resmokelib/logging/buildlogger.py
+++ b/buildscripts/resmokelib/logging/buildlogger.py
@@ -4,6 +4,7 @@ from __future__ import absolute_import
import functools
import json
+import os
import threading
import requests
@@ -16,7 +17,7 @@ APPEND_GLOBAL_LOGS_ENDPOINT = "/build/%(build_id)s"
CREATE_TEST_ENDPOINT = "/build/%(build_id)s/test"
APPEND_TEST_LOGS_ENDPOINT = "/build/%(build_id)s/test/%(test_id)s"
-_BUILDLOGGER_CONFIG = "mci.buildlogger"
+_BUILDLOGGER_CONFIG = os.getenv("BUILDLOGGER_CREDENTIALS", "mci.buildlogger")
_SEND_AFTER_LINES = 2000
_SEND_AFTER_SECS = 10