Skip to content

Commit a2e4f50

Browse files
Strum355claude
andcommitted
fix: log full exception in uv workspace discovery failure
Use LOG.log(Level.WARNING, msg, e) instead of LOG.warning(msg + e.getMessage()) so the stack trace is preserved for diagnosability. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9918286 commit a2e4f50

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/io/github/guacsec/trustifyda/impl/ExhortApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
import java.util.concurrent.CompletionException;
7171
import java.util.function.Function;
7272
import java.util.function.Supplier;
73+
import java.util.logging.Level;
7374
import java.util.logging.Logger;
7475
import java.util.stream.Collectors;
7576
import org.tomlj.TomlArray;
@@ -1067,7 +1068,7 @@ private List<Path> discoverUvWorkspaceMembers(Path workspaceDir, Set<String> ign
10671068

10681069
return WorkspaceUtils.filterByIgnorePatterns(workspaceDir, manifests, ignorePatterns);
10691070
} catch (Exception e) {
1070-
LOG.warning("Failed to discover uv workspace members: " + e.getMessage());
1071+
LOG.log(Level.WARNING, "Failed to discover uv workspace members", e);
10711072
return Collections.emptyList();
10721073
}
10731074
}

0 commit comments

Comments
 (0)