Skip to content

Commit

Permalink
Fixed line breaks not working when calling System.debug()
Browse files Browse the repository at this point in the history
@jamessimone and I had a lot of... "fun" with this one
  • Loading branch information
jongpie committed Sep 13, 2021
1 parent de176f8 commit dd8ce0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ global with sharing class LogEntryEventBuilder {
}

private void logToApexDebug(String message) {
String template = Logger.getUserSettings()?.SystemLogMessageFormat__c;
String template = Logger.getUserSettings()?.SystemLogMessageFormat__c?.unescapeJava();

This comment has been minimized.

Copy link
@jamessimone

jamessimone Sep 13, 2021

Collaborator

type 2 fun 🤣

if (String.isNotBlank(template)) {
List<String> possibleReplacements = template.split('\\{');
for (String possibleReplacement : possibleReplacements) {
Expand Down

0 comments on commit dd8ce0b

Please sign in to comment.