cdn icon indicating copy to clipboard operation
cdn copied to clipboard

Add a DEBUG option

Open marcoarthur opened this issue 7 years ago • 2 comments

Gorjun has no DEBUG option. But has a logger that can be set to this level of verbosity. This should be set and then in the relevant parts we should add some entry for the self explanation of what is happening inside gorjun

marcoarthur avatar Nov 08 '17 11:11 marcoarthur

We are now using logger for another golang based project - Subutai CLI

Debug output of this program looks the following way: image

So the same approach can be applied in Gorjun.

For example, these lines of code provide debug output that is hidden in higher loglevel, but could be displayed with debug option: https://github.com/subutai-io/agent/blob/master/agent/agent.go#L135-L137

Switching of the log level can be done like this: https://github.com/subutai-io/agent/blob/master/main.go#L28

soffokl avatar Nov 08 '17 11:11 soffokl

Added in refactored CDN.

azretkenzhaliev avatar Jun 09 '18 04:06 azretkenzhaliev