Skip to content

Commit b3a48df

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 9312bb6 commit b3a48df

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
@@ -69,6 +69,7 @@
6969
import java.util.concurrent.CompletionException;
7070
import java.util.function.Function;
7171
import java.util.function.Supplier;
72+
import java.util.logging.Level;
7273
import java.util.logging.Logger;
7374
import java.util.stream.Collectors;
7475
import org.tomlj.TomlArray;
@@ -1021,7 +1022,7 @@ private List<Path> discoverUvWorkspaceMembers(Path workspaceDir, Set<String> ign
10211022

10221023
return WorkspaceUtils.filterByIgnorePatterns(workspaceDir, manifests, ignorePatterns);
10231024
} catch (Exception e) {
1024-
LOG.warning("Failed to discover uv workspace members: " + e.getMessage());
1025+
LOG.log(Level.WARNING, "Failed to discover uv workspace members", e);
10251026
return Collections.emptyList();
10261027
}
10271028
}

0 commit comments

Comments
 (0)