Skip to content

Commit 47a68df

Browse files
committed
Setting the server url will also set the heartbeat url
If you wish to set the heartbeat url then do so after setting the serverurl
1 parent d27f368 commit 47a68df

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

Source/Extras/Extensions/ExceptionlessExtraConfigurationExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static void ReadFromConfigSection(this ExceptionlessConfiguration config)
9696
config.ApiKey = section.ApiKey;
9797

9898
if (!String.IsNullOrEmpty(section.ServerUrl))
99-
config.ServerUrl = config.HeartbeatServerUrl = section.ServerUrl;
99+
config.ServerUrl = section.ServerUrl;
100100

101101
if (section.QueueMaxAge.HasValue)
102102
config.QueueMaxAge = section.QueueMaxAge.Value;
@@ -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.ServerUrl = config.HeartbeatServerUrl = 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.ServerUrl = config.HeartbeatServerUrl = serverUrl;
197+
config.ServerUrl = serverUrl;
198198
}
199199

200200
private static string GetEnvironmentalVariable(string name) {

Source/Platforms/Log4net/BufferingExceptionlessAppender.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public override void ActivateOptions() {
2424
if (!String.IsNullOrEmpty(ApiKey) && ApiKey != "API_KEY_HERE")
2525
config.ApiKey = ApiKey;
2626
if (!String.IsNullOrEmpty(ServerUrl))
27-
config.ServerUrl = config.HeartbeatServerUrl = ServerUrl;
27+
config.ServerUrl = ServerUrl;
2828
config.UseInMemoryStorage();
2929
});
3030
}

Source/Platforms/Log4net/ExceptionlessAppender.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public override void ActivateOptions() {
1717
if (!String.IsNullOrEmpty(ApiKey) && ApiKey != "API_KEY_HERE")
1818
config.ApiKey = ApiKey;
1919
if (!String.IsNullOrEmpty(ServerUrl))
20-
config.ServerUrl = config.HeartbeatServerUrl = ServerUrl;
20+
config.ServerUrl = ServerUrl;
2121
config.UseInMemoryStorage();
2222
});
2323
}

Source/Platforms/NLog/ExceptionlessTarget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected override void InitializeTarget() {
2727
if (!String.IsNullOrEmpty(ApiKey) && ApiKey != "API_KEY_HERE")
2828
config.ApiKey = ApiKey;
2929
if (!String.IsNullOrEmpty(ServerUrl))
30-
config.ServerUrl = config.HeartbeatServerUrl = ServerUrl;
30+
config.ServerUrl = ServerUrl;
3131
config.UseInMemoryStorage();
3232
});
3333
}

Source/Shared/Configuration/ExceptionlessConfiguration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public string ServerUrl {
7272

7373
_validationResult = null;
7474
_serverUrl = value;
75+
_heartbeatServerUrl = value;
7576
}
7677
}
7778

Source/Shared/Extensions/ExceptionlessConfigurationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public static void ReadFromAttributes(this ExceptionlessConfiguration config, IC
173173
if (!String.IsNullOrEmpty(attr.ApiKey) && attr.ApiKey != "API_KEY_HERE")
174174
config.ApiKey = attr.ApiKey;
175175
if (!String.IsNullOrEmpty(attr.ServerUrl))
176-
config.ServerUrl = config.HeartbeatServerUrl = attr.ServerUrl;
176+
config.ServerUrl = attr.ServerUrl;
177177

178178
break;
179179
}

0 commit comments

Comments
 (0)