Skip to content

Commit

Permalink
[api] Adds more logs for platform detection (#2646)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored Jun 13, 2023
1 parent 9d7737c commit f040c38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/src/main/java/ai/djl/util/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,14 @@ public static Platform detectPlatform(String engine) {
if (platform.isPlaceholder()) {
placeholder = platform;
} else if (platform.matches(systemPlatform)) {
logger.info("Found matching platform from: {}", url);
return platform;
} else {
logger.info("Ignore mismatching platform from: {}", url);
}
}
if (placeholder != null) {
logger.info("Found placeholder platform from: {}", placeholder);
return placeholder;
}

Expand Down

0 comments on commit f040c38

Please sign in to comment.