summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFledgeShiu <xzk0701@gmail.com>2021-02-16 08:39:02 +0800
committerGitHub <noreply@github.com>2021-02-15 16:39:02 -0800
commite14a0a16d9a3d32ac546511e0af764c537dd8f73 (patch)
tree7775c587520f2fac7fe46e54d956679ecc7d431d
parent82bbd361bbbb045214cb26d1c1894b23b7da3c2b (diff)
Reduce default logging markers in the MDK. Modders can re-enable these for better debugging. (#7432)
Modders PLEASE read your damn log, and fix the errors we point out. Spamming modpacks with stack traces is just lazy programming.
-rw-r--r--build.gradle26
1 files changed, 22 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index ce1eb64..024dfa2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -38,9 +38,15 @@ minecraft {
workingDirectory project.file('run')
// Recommended logging data for a userdev environment
- property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
+ // The markers can be changed as needed.
+ // "SCAN": For mods scan.
+ // "REGISTRIES": For firing of registry events.
+ // "REGISTRYDUMP": For getting the contents of all registries.
+ property 'forge.logging.markers', 'REGISTRIES'
// Recommended logging level for the console
+ // You can set various levels here.
+ // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
property 'forge.logging.console.level', 'debug'
mods {
@@ -54,9 +60,15 @@ minecraft {
workingDirectory project.file('run')
// Recommended logging data for a userdev environment
- property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
+ // The markers can be changed as needed.
+ // "SCAN": For mods scan.
+ // "REGISTRIES": For firing of registry events.
+ // "REGISTRYDUMP": For getting the contents of all registries.
+ property 'forge.logging.markers', 'REGISTRIES'
// Recommended logging level for the console
+ // You can set various levels here.
+ // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
property 'forge.logging.console.level', 'debug'
mods {
@@ -70,9 +82,15 @@ minecraft {
workingDirectory project.file('run')
// Recommended logging data for a userdev environment
- property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
+ // The markers can be changed as needed.
+ // "SCAN": For mods scan.
+ // "REGISTRIES": For firing of registry events.
+ // "REGISTRYDUMP": For getting the contents of all registries.
+ property 'forge.logging.markers', 'REGISTRIES'
// Recommended logging level for the console
+ // You can set various levels here.
+ // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
property 'forge.logging.console.level', 'debug'
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
@@ -148,4 +166,4 @@ publishing {
url "file:///${project.projectDir}/mcmodsrepo"
}
}
-} \ No newline at end of file
+}