feat: add global.trace and check node module

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-01-17 18:39:23 +08:00
parent 31351fc393
commit 1c21792572
3 changed files with 27 additions and 6 deletions

View File

@ -19,6 +19,7 @@ var global = this;
if (java.nio.file.Files.exists(java.nio.file.Paths.get(root, "debug"))) {
logger.info('Running debugging mode...');
global.debug = true;
global.trace = true;
}
// Check Class Loader, Sometimes Server will can't find plugin.yml file
loader = checkClassLoader();