Skip to content

Commit

Permalink
Strip out Troubleshooting Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ndegwamartin committed Jul 27, 2023
1 parent 1e5a722 commit 47fab18
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion exec/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.google.fhir.gateway</groupId>
<artifactId>fhir-gateway</artifactId>
<version>0.1.29</version>
<version>0.1.30</version>
</parent>

<artifactId>exec</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
implementations do not have to do this; they can redeclare those deps. -->
<groupId>com.google.fhir.gateway</groupId>
<artifactId>fhir-gateway</artifactId>
<version>0.1.29</version>
<version>0.1.30</version>
</parent>

<artifactId>plugins</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<groupId>com.google.fhir.gateway</groupId>
<artifactId>fhir-gateway</artifactId>
<version>0.1.29</version>
<version>0.1.30</version>
<packaging>pom</packaging>

<name>FHIR Information Gateway</name>
Expand Down
2 changes: 1 addition & 1 deletion server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.google.fhir.gateway</groupId>
<artifactId>fhir-gateway</artifactId>
<version>0.1.29</version>
<version>0.1.30</version>
</parent>

<artifactId>server</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,6 @@ private void replaceAndCopyResponse(Reader entityContentReader, Writer writer, S
// matching can be done more efficiently if needed, but we should avoid loading the full
// stream in memory.
String fhirStoreUrl = fhirClient.getBaseUrl();

logger.error(
"######################## --- replaceAndCopyResponse --- ###########################");
logger.error(
String.format("Replacing Base URL %s with Proxy Base %s", fhirStoreUrl, proxyBase));
logger.error("###################################################");

int numMatched = 0;
int n;
while ((n = entityContentReader.read()) >= 0) {
Expand Down
13 changes: 0 additions & 13 deletions server/src/main/java/com/google/fhir/gateway/FhirProxyServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,7 @@ protected void initialize() throws ServletException {
ExceptionUtil.throwRuntimeExceptionAndLog(logger, "IOException while initializing", e);
}

logger.error(
"######################## --- initialize BEFORE Setting Address Strategy ---"
+ " ###########################");
logger.error(
String.format("Current Address Strategy class %s", this.getServerAddressStrategy()));
logger.error("###################################################\n");

setServerAddressStrategy(new ApacheProxyAddressStrategy(true));

logger.error(
"######################## --- initialize AFTER Setting Address Strategy ---"
+ " ###########################");
logger.error(String.format("New Address Strategy class %s", this.getServerAddressStrategy()));
logger.error("###################################################\n");
}

private HttpFhirClient chooseHttpFhirClient(String backendType, String fhirStore)
Expand Down

0 comments on commit 47fab18

Please sign in to comment.