mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-14 01:14:19 +00:00
Changed logging level to debug
This commit is contained in:
1 parent
3ffec4fa5b
commit
779c915ac7
3 files changed
+4
-6
No files matched your search
@@ -130,7 +130,7 @@ object MicroMaterialRegistry
|
||||
return
|
||||
}
|
||||
|
||||
logger.info("Registered micro material: " + name)
|
||||
logger.debug("Registered micro material: " + name)
|
||||
|
||||
typeMap.put(name, material)
|
||||
}
|
||||
@@ -145,7 +145,7 @@ object MicroMaterialRegistry
|
||||
if (typeMap.remove(name).isEmpty)
|
||||
logger.error("Material with id " + name + " is was not registered.")
|
||||
|
||||
logger.info("Replaced micro material: " + name)
|
||||
logger.debug("Replaced micro material: " + name)
|
||||
|
||||
typeMap.put(name, material)
|
||||
}
|
||||
|
||||
@@ -40,12 +40,10 @@ object DebugPrinter
|
||||
|
||||
def defined(name: String, bytes: Array[Byte]) {
|
||||
if ((permGenUsed + bytes.length) / 16000 != permGenUsed / 16000)
|
||||
log((permGenUsed + bytes.length) + " bytes of permGen has been used by ASMMixinCompiler")
|
||||
logger.debug((permGenUsed + bytes.length) + " bytes of permGen has been used by ASMMixinCompiler")
|
||||
|
||||
permGenUsed += bytes.length
|
||||
}
|
||||
|
||||
def log(msg: String) = if (debug) println(msg)
|
||||
}
|
||||
|
||||
object ASMMixinCompiler
|
||||
|
||||
@@ -81,7 +81,7 @@ object ASMMixinFactory extends IMultipartFactory
|
||||
|
||||
MultipartGenerator.registerTileClass(cmpClass.asInstanceOf[TMClass], types.toSet)
|
||||
val c = constructor(cmpClass)
|
||||
DebugPrinter.log("Generation ["+types.mkString(", ")+"] took: "+(System.currentTimeMillis-startTime))
|
||||
DebugPrinter.logger.debug("Generation ["+types.mkString(", ")+"] took: "+(System.currentTimeMillis-startTime))
|
||||
return c
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user