Update forge

Fix some logging inconsistencies
This commit is contained in:
Chicken-Bones committed 2014-07-07 23:25:35 +10:00
1 parent b6446d413d
commit a84f38500d
4 files changed
+5 -8

No files matched your search

@@ -29,7 +29,7 @@ object ConfigContent
loadLines(cfgFile)
}
catch {
case e: IOException => e.printStackTrace()
case e: IOException => logger.error("Error parsing config", e)
}
}
@@ -109,8 +109,7 @@ object ConfigContent
case e: IllegalStateException => logger.error("Unable to register micro material: " +
materialKey(block, m) + "\n\t" + e.getMessage)
case e: Exception =>
logger.error("Unable to register micro material: " + materialKey(block, m))
e.printStackTrace()
logger.error("Unable to register micro material: " + materialKey(block, m), e)
}
}
}
@@ -23,9 +23,7 @@ object MCPCCompatModule
m_canPlacePart.invoke(world, MultipartProxy.block, x:Integer, y:Integer, z:Integer).asInstanceOf[Boolean].booleanValue()
}
} catch {
case e:Exception =>
MultipartProxy.logger.error("Failed to integrate MCPC placement hooks")
e.printStackTrace()
case e:Exception => MultipartProxy.logger.error("Failed to integrate MCPC placement hooks", e)
}
}
}