Clairctl - debug mode

95 views
Skip to first unread message

suneel putta

unread,
May 3, 2021, 9:36:03 AM5/3/21
to clair-dev
Hi Team,
I am using clairctl to talk to clair server.

I am clairctl V4.0.4(linux-amd64). It used to work until couple of days back but all of a sudden I am getting 404 for report option. But it doesnot print any more details that I can use to debug. It just prints one line like below,

$ ./clairctl report  --host http://<host>:<port> <artifactory-host>/docker-eloqua/fis:503.11

2021/05/01 00:30:13 unexpected return status: 404

I have see the clairctl usage and i don't find any option to enable debug mode. Even then I have used --log-level debug but clairctl just exits with message 2021/05/01 00:25:46 flag provided but not defined: -log-level

Please let me know if there is a way to see more verbose information.


Thanks & Regards

Sindhu Kumar

Oracle

Hank Donnay

unread,
May 3, 2021, 10:51:14 AM5/3/21
to clai...@googlegroups.com
On Mon, May 03, 2021 at 06:36:03AM -0700, suneel putta wrote:
>I have see the clairctl usage and i don't find any option to enable debug
>mode. Even then I have used --log-level debug but clairctl just exits with
>message 2021/05/01 00:25:46 flag provided but not defined: -log-level

Clairctl has a debug flag, `D`. The flags are different between the main
command and the subcommand, see also `clairctl -h` and `clairctl report -h`.
Also, in 4.0 the debug flag only applies to the `clairctl` internals.

Reply all
Reply to author
Forward
0 new messages