Skip to content

Commit b4ea381

Browse files
committed
Fixed an issue with #37.
I need to pay closer attention :)
1 parent d275387 commit b4ea381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Extras/Extensions/ExceptionlessExtraConfigurationExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public static void ReadFromAppSettings(this ExceptionlessConfiguration config) {
176176

177177
string serverUrl = ConfigurationManager.AppSettings["Exceptionless:ServerUrl"];
178178
if (!String.IsNullOrEmpty(serverUrl))
179-
config.ApiKey = serverUrl;
179+
config.ServerUrl = serverUrl;
180180
}
181181

182182
/// <summary>
@@ -194,7 +194,7 @@ public static void ReadFromEnvironmentalVariables(this ExceptionlessConfiguratio
194194

195195
string serverUrl = GetEnvironmentalVariable("Exceptionless:ServerUrl");
196196
if (!String.IsNullOrEmpty(serverUrl))
197-
config.ApiKey = serverUrl;
197+
config.ServerUrl = serverUrl;
198198
}
199199

200200
private static string GetEnvironmentalVariable(string name) {

0 commit comments

Comments
 (0)