Logging
The logging feature allows you to report and persist debug messages and request headers and contents for further troubleshooting and analysis.
To enable OLP CLI debug logging and display request headers, set the OLP_VERBOSE
environment variable to headers
. To additionally display the contents of requests, set OLP_VERBOSE
to body
. To disable logging, set OLP_VERBOSE
to off
or simply remove it from your system variables list.
Example of expected output:
[DEBUG][03/14/2018 18:00:28.690] [main][eventstream(akka://olp)] logger
log1-Logging\$DefaultLogger started
[DEBUG][03/14/2018 18:00:28.695] [main][eventstream(akka://olp)] Default Loggers started
[INFO][03/14/2018 18:00:29.152] [main][dataclientsettingsext] Reading credentials from default
credentials file C:\...\.here\credentials.properties
[INFO][03/14/2018 18:00:29.160] [main][dataclientext] using normal-pace retry policy type
[DEBUG][03/14/2018 18:00:29.680] [olp-akka.actor.default-dispatcher-2][defaultendpointlocator]
resolve LocatorContext(ConfigApiType,None,com.here.platform.data.client.settings.DefaultHttpRequestSigner@6617e4dc)
to Endpoint(baseUrl = https://config.data.api.platform.in.here.com)
[DEBUG][03/14/2018 18:00:30.206] [olp-akka.actor.default-dispatcher-2][akkasslconfig(akka://olp)]
Initializing AkkaSSLConfig extension...
[DEBUG][03/14/2018 18:00:30.208] [olp-akka.actor.default-dispatcher-2][akkasslconfig(akka://olp)]
buildHostnameVerifier: created hostname verifier:
com.typesafe.sslconfig.ssl.DefaultHostnameVerifier@127dcafb
...
hrn:here-cn-dev:data::org:olp-cli-test
hrn:here-cn-dev:data::org:olp-cli-without-layers
hrn:here-cn-dev:data::org:test-sharing-grp
Use olp catalog show to display more information about a catalog
[DEBUG][03/14/2018 18:00:36.934] [olp-akka.actor.default-dispatcher-2][olp/pool(shared->https://stg.account.api.here.com:443)]
[0] stg.account.api.here.com:443> Slot was stopped
[DEBUG][03/14/2018 18:00:36.935] [olp-akka.actor.default-dispatcher-2][olp/pool(shared->https://stg.account.api.here.com:443)]
[1] Slot was stopped
...