Skip to content

Commit 6918807

Browse files
committed
[GR-69313] Improved logging when home is initialized
PullRequest: graalpython/3982
2 parents f4b7ca3 + e0d4bca commit 6918807

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PythonContext.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,9 +1851,13 @@ public void initializeHomeAndPrefixPaths(Env newEnv, String languageHome) {
18511851
() -> {
18521852
try {
18531853
TruffleFile internalResource = newEnv.getInternalResource("python-home");
1854-
return internalResource == null ? null : internalResource.getAbsoluteFile();
1854+
if (internalResource == null) {
1855+
PythonLanguage.getLogger(Python3Core.class).fine("Couldn't load python internal resources");
1856+
return null;
1857+
}
1858+
return internalResource.getAbsoluteFile();
18551859
} catch (IOException e) {
1856-
// fall through
1860+
PythonLanguage.getLogger(Python3Core.class).log(Level.INFO, "Internal resources loading error", e);
18571861
}
18581862
return null;
18591863
}

0 commit comments

Comments
 (0)