dita-ot / dita-ot

DITA Open Toolkit — the open-source publishing engine for content authored in the Darwin Information Typing Architecture.
https://www.dita-ot.org
Apache License 2.0
386 stars 193 forks source link

Pass exceptions to logging and output stacktrace on debug logging #4436

Closed jelovirt closed 2 months ago

jelovirt commented 2 months ago

Description

Fix passing exception with error log and log stacktrace in debug logging mode.

Motivation and Context

Fixes #4430

How Has This Been Tested?

Manual testing.

Type of Changes

jelovirt commented 2 months ago

@raducoravu Are you able to test if this logging fix works for you?

raducoravu commented 2 months ago

@jelovirt thanks for this, I confirm that when running with "-d", errors logged like this from my ANT task now have the stack trace visible:

 getProject().log(mytask, ex.getMessage(), ex, Project.MSG_ERR);