Microservice Logs
Debugging distributed applications can be tricky. Fortunately, potctl makes it easy to find out what each of our microservices are doing.
With the logs
command, we can use potctl to inspect the output of each microservice's container:
potctl logs microservice NAME
If we have issues getting logs, its a good idea to check the status of the respective microservice:
potctl get microservices
NAMESPACE
default
MICROSERVICE STATUS AGENT ROUTES VOLUMES PORTS
msvc-1 RUNNING agent-1 route-1 /tmp/msvc:/tmp
msvc-2 DELETING agent-2 /tmp/iofog:/data 5000:80