Skip to content

Commit

Permalink
error debug format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 8, 2022
1 parent abce839 commit 1d077e5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,16 +563,16 @@ public static void sendMessage(String string, boolean reformat) {
// Record current buffer to the to-be-submitted buffer
if (Debug.record) {
try {
// "HH:mm:ss"
String toRecord = " " + (reformat ? string.replace("<FORCE_ALIGN>", " ") : string) + "\n";
// "HH:mm:ss"
String toRecord = " " + string.replace("<FORCE_ALIGN>", " ")+ "\n";
Debug.recording.append(URLEncoder.encode(dateFormat.format(new Date()) + toRecord, "UTF-8"));
}
catch (Throwable ex) {
Debug.echoError(ex);
}
}
// "[HH:mm:ss INFO]: "
string = Settings.debugPrefix() + (reformat ? string.replace("<FORCE_ALIGN>", " ") : string);
// "[HH:mm:ss INFO]: "
string = Settings.debugPrefix() + string.replace("<FORCE_ALIGN>", " ");
if (DenizenCore.logInterceptor.redirected) {
if (!DenizenCore.logInterceptor.antiLoop) {
DenizenCore.logInterceptor.antiLoop = true;
Expand Down

0 comments on commit 1d077e5

Please sign in to comment.