Skip to content

Commit c4df571

Browse files
committed
additional logging for licenses
1 parent 3a96771 commit c4df571

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/org/spdx/library/ListedLicenses.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private void initializeLicenseModelStore() {
126126
try {
127127
baseModelStore = new SpdxListedLicenseLocalStore();
128128
} catch(InvalidSPDXAnalysisException ex) {
129-
logger.error("Error loading cached SPDX licenses");
129+
logger.error("Error loading cached SPDX licenses", ex);
130130
throw new RuntimeException("Unexpected error loading SPDX Listed Licenses");
131131
}
132132
}

src/main/java/org/spdx/storage/listedlicense/SpdxListedLicenseModelStore.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,10 @@ private void loadIds() throws InvalidSPDXAnalysisException {
180180
ExceptionJsonTOC exceptionToc = gson.fromJson(tocJsonStr.toString(), ExceptionJsonTOC.class);
181181
exceptionIds = exceptionToc.getExceptionIds();
182182
} catch (MalformedURLException e) {
183+
logger.error("License TOC URL invalid", e);
183184
throw new SpdxListedLicenseException("License TOC URL invalid", e) ;
184185
} catch (IOException e) {
186+
logger.error("I/O error reading license TOC", e);
185187
throw new SpdxListedLicenseException("I/O error reading license TOC", e);
186188
} finally {
187189
if (reader != null) {

0 commit comments

Comments
 (0)