From 4e5365128fcc24a3fe717a01451e999526d6af73 Mon Sep 17 00:00:00 2001 From: Mihovil Strujic Date: Sun, 4 Aug 2019 21:06:41 -0400 Subject: [PATCH] Updated newrelic.json location handling --- NewRelic.Platform.Sdk/Configuration/NewRelicConfig.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/NewRelic.Platform.Sdk/Configuration/NewRelicConfig.cs b/NewRelic.Platform.Sdk/Configuration/NewRelicConfig.cs index ce84392..b0f6cd5 100644 --- a/NewRelic.Platform.Sdk/Configuration/NewRelicConfig.cs +++ b/NewRelic.Platform.Sdk/Configuration/NewRelicConfig.cs @@ -9,7 +9,6 @@ namespace NewRelic.Platform.Sdk.Configuration public class NewRelicConfig : INewRelicConfig { private static NewRelicConfig ConfigInstance; - private const string ConfigPath = @"config\newrelic.json"; private const string DefaultEndpoint = "https://platform-api.newrelic.com/platform/v1/metrics"; private const string DefaultLogFileName = "newrelic_plugin.log"; private const string DefaultLogFilePath = @"logs"; @@ -68,7 +67,7 @@ public static NewRelicConfig Instance if (ConfigInstance == null) { string assemblyPath = Assembly.GetExecutingAssembly().GetLocalPath(); - string configPath = Path.Combine(assemblyPath, ConfigPath); + string configPath = Path.Combine(assemblyPath, Path.Combine("config", "newrelic.json")); if (!File.Exists(configPath)) {