Add double-quotes back to log messages
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s
Double-quotes were initially removed for aesthetic reasons. However, JMC collapses whitespace, resulting in mangled message output. Double quotes are converted to single quotes in compliled output.
This commit is contained in:
parent
36344b82b0
commit
5bac9fdb2f
@ -25,7 +25,7 @@ class logger {
|
|||||||
$logger = false;
|
$logger = false;
|
||||||
} else if ($logger) {
|
} else if ($logger) {
|
||||||
say "Logging is enabled. You should now see a test log message:";
|
say "Logging is enabled. You should now see a test log message:";
|
||||||
logger(2, logger, This is a test. Logging appears to be working as expected!);
|
logger(2, logger, "This is a test. Logging appears to be working as expected!");
|
||||||
} else {
|
} else {
|
||||||
say "This is not a log message. There appears to be something wrong with the logger. It has not been detected as `!true` or `true`. Please investigate.";
|
say "This is not a log message. There appears to be something wrong with the logger. It has not been detected as `!true` or `true`. Please investigate.";
|
||||||
}
|
}
|
||||||
@ -52,23 +52,23 @@ class logger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function test_fatal() {
|
function test_fatal() {
|
||||||
logger(5, logger, This is a test);
|
logger(5, logger, "This is a test");
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_error() {
|
function test_error() {
|
||||||
logger(4, logger, This is a test);
|
logger(4, logger, "This is a test");
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_warning() {
|
function test_warning() {
|
||||||
logger(3, logger, This is a test);
|
logger(3, logger, "This is a test");
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_info() {
|
function test_info() {
|
||||||
logger(2, logger, This is a test);
|
logger(2, logger, "This is a test");
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_debug() {
|
function test_debug() {
|
||||||
logger(1, logger, This is a test);
|
logger(1, logger, "This is a test");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user