Skip to content

Commit

Permalink
Removing core.Log
Browse files Browse the repository at this point in the history
  • Loading branch information
marigostra committed May 13, 2024
1 parent a7f1ffa commit 0f129ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 125 deletions.
6 changes: 2 additions & 4 deletions src/main/java/org/luwrain/core/Init.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

public final class Init
{
static public final String LOG_COMPONENT = "init";
static private final File
DEBUG_FILE = new File(new File(System.getProperty("user.home")), "luwrain-debug.txt"),
STANDALONE = new File("standalone");
Expand Down Expand Up @@ -57,7 +56,6 @@ static public void main(String[] args) throws IOException
} else
{
userDataDir = createTempDataDir();
Log.info(LOG_COMPONENT, "standalone mode, temporary user data dir is " + userDataDir.getAbsolutePath());
}
final ClassLoader classLoader = new URLClassLoader(urls.toArray(new java.net.URL[urls.size()]), ClassLoader.getSystemClassLoader());
Thread.currentThread().setContextClassLoader(classLoader);
Expand Down Expand Up @@ -153,14 +151,14 @@ static private File createTempDataDir()
tmpDir.delete();
if (!tmpDir.mkdir())
{
Log.fatal(LOG_COMPONENT, "unable to create temporary directory " + tmpDir.getAbsolutePath());
System.err.println("FATAL: Unable to create temporary directory " + tmpDir.getAbsolutePath());
System.exit(1);
}
return tmpDir;
}
catch(IOException e)
{
Log.fatal(LOG_COMPONENT, "unable to create the temporary user data directory:" + e.getClass().getName() + ":" + e.getMessage());
System.err.println("FATAL: Unable to create the temporary user data directory:" + e.getClass().getName() + ":" + e.getMessage());
System.exit(1);
return null;
}
Expand Down
121 changes: 0 additions & 121 deletions src/main/java/org/luwrain/core/Log.java

This file was deleted.

0 comments on commit 0f129ed

Please sign in to comment.