mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FUS: add option to send data to test server
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ public class SendEventLogAction extends AnAction {
|
||||
|
||||
private static class EventLogTestSettingsService extends EventLogExternalSettingsService implements EventLogSettingsService {
|
||||
private EventLogTestSettingsService() {
|
||||
super(FUS_RECORDER);
|
||||
super(FUS_RECORDER, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+9
-2
@@ -48,12 +48,19 @@ public class EventLogExternalSettingsService extends SettingsConnectionService i
|
||||
}
|
||||
|
||||
public EventLogExternalSettingsService(@NotNull String recorderId) {
|
||||
super(getConfigUrl(recorderId), null);
|
||||
super(getConfigUrl(recorderId, false), null);
|
||||
}
|
||||
|
||||
public EventLogExternalSettingsService(@NotNull String recorderId, boolean isTest) {
|
||||
super(getConfigUrl(recorderId, isTest), null);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static String getConfigUrl(@NotNull String recorderId) {
|
||||
private static String getConfigUrl(@NotNull String recorderId, boolean isTest) {
|
||||
final String templateUrl = ((ApplicationInfoImpl)ApplicationInfoImpl.getShadowInstance()).getEventLogSettingsUrl();
|
||||
if (isTest) {
|
||||
return String.format(templateUrl, "test/" + recorderId);
|
||||
}
|
||||
return String.format(templateUrl, recorderId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user