From 288ea7f144105d47129871fe7351de458186f15b Mon Sep 17 00:00:00 2001 From: Mathew Robinson Date: Tue, 15 Jan 2019 12:40:09 -0500 Subject: SERVER-39009 Make buildlogger credentials location configurable (cherry picked from commit 78a8fa36593cc0c429ffe10e07ccc33f7ce81d27) --- buildscripts/resmokelib/logging/buildlogger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1