How Do I Enable Debug Mode in Composer Services?
Debug mode logs additional information when trying to troubleshoot an issue. Debug mode should only be enabled for further troubleshooting. You may not want to leave debug mode enabled because it can be resource and log intensive!
You can enable debug mode using one of two methods:
-
Change Logging level at runtime without the service restart. Run the following API call:
Important: Restarting any service will also reset logging options and automatically disable debug mode by default.#zoomdata/web service curl -X POST "http(s)://<host>:<port>/composer/actuator/loggers/com.zoomdata" \ -H "Content-Type: application/json; charset=utf-8" \ -d $'{ "configuredLevel": "DEBUG" }' \ -u <supervisor>:<password> #other services, query-engine, edc curl -X POST "http(s)://<host>:<port>/actuator/loggers/com.zoomdata" \ -H "Content-Type: application/json; charset=utf-8" \ -d $'{ "configuredLevel": "DEBUG" }' \ -u <supervisor>:<password>Replace the<password>
,<host>
, and<port>
parameters with appropriate values. The user must be the supervisor user to change the instance logging level. Useful logging levels areDEBUG
,INFO
(default),ERROR
.The java package name prefix is
com.zoomdata
. Alternatively, it may beorg.springframework
. -
Permanently change the service logging level, then restart the service. Add the following property to the parameter to the
zoomdata.properties
file or any other service.properties
, then restart the service.#com.zoomdata and org.springframework are java package names logging.level.com.zoomdata=DEBUG logging.level.org.springframework=DEBUG
Comments
0 comments
Please sign in to leave a comment.