007621c192ce247c4db8a3652454c5eab2996c38
java/com.sap.sailing.windestimation.test/src/com/sap/sailing/windestimation/integration/IncrementalMstHmmWindEstimationForTrackedRaceTest.java
| ... | ... | @@ -7,8 +7,6 @@ import java.io.File; |
| 7 | 7 | import java.io.IOException; |
| 8 | 8 | import java.net.URI; |
| 9 | 9 | import java.net.URL; |
| 10 | -import java.nio.charset.StandardCharsets; |
|
| 11 | -import java.security.MessageDigest; |
|
| 12 | 10 | import java.text.SimpleDateFormat; |
| 13 | 11 | import java.util.ArrayList; |
| 14 | 12 | import java.util.Collections; |
| ... | ... | @@ -140,18 +138,8 @@ public class IncrementalMstHmmWindEstimationForTrackedRaceTest extends OnlineTra |
| 140 | 138 | if (polarDataBearerToken == null) { |
| 141 | 139 | logger.warning("Couldn't find POLAR_DATA_BEARER_TOKEN environment variable either, polar data service will not be available"); |
| 142 | 140 | } else { |
| 143 | - final byte[] digest = MessageDigest.getInstance("SHA-256").digest(polarDataBearerToken.getBytes(StandardCharsets.UTF_8)); |
|
| 144 | - final StringBuilder hexString = new StringBuilder(); |
|
| 145 | - for (byte b : digest) { |
|
| 146 | - String hex = Integer.toHexString(0xff & b); |
|
| 147 | - if (hex.length() == 1) { |
|
| 148 | - hexString.append('0'); |
|
| 149 | - } |
|
| 150 | - hexString.append(hex); |
|
| 151 | - } |
|
| 152 | 141 | logger.info("Found POLAR_DATA_BEARER_TOKEN environment variable, length "+polarDataBearerToken.length() |
| 153 | - +", SHA256 hash "+hexString.toString() |
|
| 154 | - +"; polar data service will be available"); |
|
| 142 | + +"; polar data service will be available"); |
|
| 155 | 143 | } |
| 156 | 144 | } else { |
| 157 | 145 | logger.info("Found polardata.source.bearertoken system property, polar data service will be available"); |
java/com.sap.sailing.windestimation.test/src/com/sap/sailing/windestimation/integration/IncrementalMstManeuverGraphGeneratorTest.java
| ... | ... | @@ -8,8 +8,6 @@ import java.net.MalformedURLException; |
| 8 | 8 | import java.net.URI; |
| 9 | 9 | import java.net.URISyntaxException; |
| 10 | 10 | import java.net.URL; |
| 11 | -import java.nio.charset.StandardCharsets; |
|
| 12 | -import java.security.MessageDigest; |
|
| 13 | 11 | import java.security.NoSuchAlgorithmException; |
| 14 | 12 | import java.text.SimpleDateFormat; |
| 15 | 13 | import java.util.ArrayList; |
| ... | ... | @@ -104,17 +102,7 @@ public class IncrementalMstManeuverGraphGeneratorTest extends OnlineTracTracBase |
| 104 | 102 | if (polarDataBearerToken == null) { |
| 105 | 103 | logger.warning("Couldn't find POLAR_DATA_BEARER_TOKEN environment variable either, polar data service will not be available"); |
| 106 | 104 | } else { |
| 107 | - final byte[] digest = MessageDigest.getInstance("SHA-256").digest(polarDataBearerToken.getBytes(StandardCharsets.UTF_8)); |
|
| 108 | - final StringBuilder hexString = new StringBuilder(); |
|
| 109 | - for (byte b : digest) { |
|
| 110 | - String hex = Integer.toHexString(0xff & b); |
|
| 111 | - if (hex.length() == 1) { |
|
| 112 | - hexString.append('0'); |
|
| 113 | - } |
|
| 114 | - hexString.append(hex); |
|
| 115 | - } |
|
| 116 | 105 | logger.info("Found POLAR_DATA_BEARER_TOKEN environment variable, length "+polarDataBearerToken.length() |
| 117 | - +", SHA256 hash "+hexString.toString() |
|
| 118 | 106 | +"; polar data service will be available"); |
| 119 | 107 | } |
| 120 | 108 | } else { |
java/target/configuration/logging_debug.properties
| ... | ... | @@ -66,5 +66,6 @@ com.sap.sailing.aiagent.impl.RaceListener.level = FINE |
| 66 | 66 | # Show GithubReleasesRepository log output |
| 67 | 67 | com.sap.sse.landscape.impl.GithubReleasesRepository.level = FINE |
| 68 | 68 | |
| 69 | -com.sap.sailing.windestimation.integration.IncrementalMstHmmWindEstimationForTrackedRaceTest.level = FINE |
|
| 70 | -com.sap.sailing.windestimation.integration.IncrementalMstHmmWindEstimationForTrackedRace.level = FINE |
|
| ... | ... | \ No newline at end of file |
| 0 | +# Produce wind-from-maneuver estimation graph: |
|
| 1 | +#com.sap.sailing.windestimation.integration.IncrementalMstHmmWindEstimationForTrackedRaceTest.level = FINE |
|
| 2 | +#com.sap.sailing.windestimation.integration.IncrementalMstHmmWindEstimationForTrackedRace.level = FINE |
|
| ... | ... | \ No newline at end of file |