Skip to content

Commit 6d6c98f

Browse files
authored
Feature/update url for swagger UI (#79)
* Refactor error message and update API url Adjusted the error message in DataImportEventHandler to better reflect the underlying issue when a subscription to device measurement notifications cannot be established. Additionally, the API url in the Application file has been updated to ensure it points to the correct endpoint. Both changes are aimed at improving the clarity and maintainability of the codebase. * Update version in pom.xml Version in pom.xml file updated from 8.2.0 to 8.2.1. This change has been made to keep the project versioning consistent and up-to-date as some modifications in the error message and API URL have been made in the project.
1 parent 7d31a21 commit 6d6c98f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<groupId>de.app.5gla</groupId>
1616
<artifactId>api</artifactId>
17-
<version>8.2.0</version>
17+
<version>8.2.1</version>
1818

1919
<properties>
2020
<maven.compiler.source>17</maven.compiler.source>

src/main/java/de/app/fivegla/Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
servers = {
4242
@Server(
4343
description = "Production",
44-
url = "https://app.5gla.de/api"
44+
url = "https://api.5gla.de/api"
4545
),
4646
@Server(
4747
description = "Local Development",

src/main/java/de/app/fivegla/event/DataImportEventHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void handleDataImportEvent(DataImportEvent dataImportEvent) {
6060
subscriptionService.subscribeAndReset(Type.DeviceMeasurement);
6161
log.info("Subscribed to device measurement notifications.");
6262
} catch (FiwareIntegrationLayerException e) {
63-
log.error("Error subscribing to device measurement notifications.", e);
63+
log.error("Could not subscribe to device measurement notifications.");
6464
}
6565
} else {
6666
log.info("Subscriptions are disabled. Not subscribing to device measurement notifications.");

0 commit comments

Comments
 (0)