Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Updated config (newrelic.json) handling, resolves #41 #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions NewRelic.Platform.Sdk/Configuration/NewRelicConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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))
{
Expand Down