Pivotal Knowledge Base

Follow

How to enable debug mode for Doppler

Environment

Product Version
Pivotal Cloud Foundry® (PCF) 1.6.x, 1.7.x

Purpose

This article discusses how to enable debug mode for Doppler.

Procedure

  • "bosh ssh" to the doppler VMs.
  • Edit /var/vcap/jobs/doppler/bin/doppler_ctl.
  • Change the following line:
 chpst -u vcap:vcap /var/vcap/packages/doppler/doppler \
--config /var/vcap/jobs/doppler/config/doppler.json &

to

chpst -u vcap:vcap /var/vcap/packages/doppler/doppler --debug \
--config /var/vcap/jobs/doppler/config/doppler.json &
  • Run sudo monit restart doppler. Run watch monit summary and wait for the process to restart.
  • You should see log debug entries that look like the following:
{"timestamp":1463691844.591357231,"process_id":1460,"source":"doppler","log_level":"debug","message":"MessageRouter:MessageReceived","data":null,"file":"/var/vcap/data/compile/doppler/loggregator/src/doppler/sinkserver/message_router.go","line":44,"method":"doppler/sinkserver.(*MessageRouter).Start"}
where the "log_level" is "debug".

Impact/Risks

Enabling debug mode will impact the system performance and may also fill up the ephemeral disk, so we strongly recommend to use it only for development/troubleshooting purpose.

Comments

Powered by Zendesk