Skip to content

Commit

Permalink
Scope creep: fixed a small bug in a System.debug() statement in Logge…
Browse files Browse the repository at this point in the history
…r, removed unnecessary access to FlowLogger in perm set LoggerLogCreator
  • Loading branch information
jongpie committed Aug 23, 2024
1 parent 0abb0c5 commit c7622e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion nebula-logger/core/main/logger-engine/classes/Logger.cls
Original file line number Diff line number Diff line change
Expand Up @@ -3075,7 +3075,7 @@ global with sharing class Logger {
orderedScenarios.add(scenario);
// One of a few limited places in the codebase (except tests) that should use System.debug()
// The rest of the codebase should use a method in Logger.cls
if (String.isNotBlank(transactionScenario)) {
if (String.isNotBlank(currentEntryScenario)) {
System.debug(System.LoggingLevel.INFO, 'Nebula Logger - Entry Scenario: ' + currentEntryScenario);
}
LoggerScenarioRule__mdt matchingScenarioRule = LoggerScenarioRule.getInstance(scenario);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
<apexClass>FlowLogEntry</apexClass>
<enabled>true</enabled>
</classAccesses>
<classAccesses>
<apexClass>FlowLogger</apexClass>
<enabled>true</enabled>
</classAccesses>
<classAccesses>
<apexClass>FlowRecordLogEntry</apexClass>
<enabled>true</enabled>
Expand Down

0 comments on commit c7622e5

Please sign in to comment.