tools icon indicating copy to clipboard operation
tools copied to clipboard

Log Exception Stack Traces When The Tool Fails

Open romeara opened this issue 10 years ago • 4 comments

Currently, when jar commands fail, a single message line is output. This is not helpful for debugging, as it give no clues as to the source of the issue.

The tool should log the stack trace of such exceptions for easier tracking

romeara avatar Jun 17 '15 00:06 romeara

The overall logging for the license list tool does not seem to be working. This would need to be debugged - likely a configuration issue for log4j.

goneall avatar Nov 11 '17 17:11 goneall

Hi @goneall. Can you point me to the logger file where I can enhance the code to log stacktrace?

Gautime avatar Jun 11 '20 00:06 Gautime

@Gautime If you download https://github.com/spdx/tools/releases/download/v2.2.1/spdx-tools-2.2.1-jar-with-dependencies.jar and run the application you'll notice an error about logging configuration. I would start there and see if you can find out what configuration needs to be added.

goneall avatar Jun 11 '20 16:06 goneall

#236 Merged.

Gautime avatar Jun 16 '20 18:06 Gautime