Skip to content

Commit e0d4bca

Browse files
committed
Improved logging when home is initialized
1 parent a2241c1 commit e0d4bca

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
@@ -1849,9 +1849,13 @@ public void initializeHomeAndPrefixPaths(Env newEnv, String languageHome) {
18491849
() -> {
18501850
try {
18511851
TruffleFile internalResource = newEnv.getInternalResource("python-home");
1852-
return internalResource == null ? null : internalResource.getAbsoluteFile();
1852+
if (internalResource == null) {
1853+
PythonLanguage.getLogger(Python3Core.class).fine("Couldn't load python internal resources");
1854+
return null;
1855+
}
1856+
return internalResource.getAbsoluteFile();
18531857
} catch (IOException e) {
1854-
// fall through
1858+
PythonLanguage.getLogger(Python3Core.class).log(Level.INFO, "Internal resources loading error", e);
18551859
}
18561860
return null;
18571861
}

0 commit comments

Comments
 (0)