Changed a majority of Holocore to use the Log class

This commit is contained in:
Obique PSWG
2016-05-13 17:36:59 -05:00
parent b5f2114cbd
commit 842dfdf136
50 changed files with 136 additions and 166 deletions
+5 -3
View File
@@ -38,6 +38,8 @@ import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import resources.server_info.Log;
public class Scripts {
private static final String SCRIPTS = "scripts/";
@@ -79,9 +81,9 @@ public class Scripts {
// Returning null is all that's necessary
return null;
} catch (Throwable t) {
System.err.println("Error invoking script: " + script + " with function: " + function);
System.err.println(" Args: " + Arrays.toString(args));
t.printStackTrace();
Log.e("Scripts", "Error invoking script: " + script + " with function: " + function);
Log.e("Scripts", " Args: " + Arrays.toString(args));
Log.e("Scripts", t);
return null;
}
}