summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2019-01-15 12:40:09 -0500
committerMathew Robinson <chasinglogic@gmail.com>2019-02-07 10:05:36 -0500
commit288ea7f144105d47129871fe7351de458186f15b (patch)
tree2e17427cb6bd42a66f06f2fe0ba8b7f9b7489074 /buildscripts
parentf981f6d69a66800632fe2083e92ed20d46729984 (diff)
downloadmongo-288ea7f144105d47129871fe7351de458186f15b.tar.gz
SERVER-39009 Make buildlogger credentials location configurable
(cherry picked from commit 78a8fa36593cc0c429ffe10e07ccc33f7ce81d27)
Diffstat (limited to 'buildscripts')
-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 939885297d9..12831857897 100644
--- a/buildscripts/resmokelib/logging/buildlogger.py
+++ b/buildscripts/resmokelib/logging/buildlogger.py
@@ -6,6 +6,7 @@ from __future__ import absolute_import
import functools
import json
+import os
import threading
import requests
@@ -19,7 +20,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