Skip to content

Commit c1d14b2

Browse files
committed
temp commit in dev for more datadog debug output
[#development]
1 parent 2fa1d14 commit c1d14b2

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

chpl/chpl-resources/src/main/resources-dev/log4j2-file.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,15 @@
4444
<AppenderRef ref="FILE" />
4545
<AppenderRef ref="chplserviceJson" />
4646
</Logger>
47+
<!-- Set the logging level for the Datadog API client packages to DEBUG -->
48+
<Logger name="com.datadog.api.client" level="debug" additivity="false">
49+
<AppenderRef ref="STDOUT" />
50+
<AppenderRef ref="chplServiceJsonLog" />
51+
</Logger>
52+
<!-- You may also need to set debug for the underlying HTTP client library if used -->
53+
<Logger name="org.apache.http" level="debug" additivity="false">
54+
<AppenderRef ref="STDOUT" />
55+
<AppenderRef ref="chplServiceJsonLog" />
56+
</Logger>
4757
</Loggers>
4858
</Configuration>

chpl/chpl-service/src/main/java/gov/healthit/chpl/scheduler/job/urluptime/DatadogSyntheticsTestApiProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public DatadogSyntheticsTestApiProvider(@Value("${datadog.apiKey}") String datad
3131
ClientConfig clientConfig = defaultClient.getClientConfig().connectorProvider(new ApacheConnectorProvider());
3232
defaultClient.setClientConfig(clientConfig);
3333
defaultClient.configureApiKeys(getDatadogSecrets());
34+
defaultClient.setDebugging(true);
3435

3536
apiInstance = new SyntheticsApi(defaultClient);
3637
}

0 commit comments

Comments
 (0)