From c7622e579b3e37e8b2c7295fd4a2a9dfad0c8dbf Mon Sep 17 00:00:00 2001 From: Jonathan Gillespie Date: Fri, 23 Aug 2024 18:05:08 -0400 Subject: [PATCH] Scope creep: fixed a small bug in a System.debug() statement in Logger, removed unnecessary access to FlowLogger in perm set LoggerLogCreator --- nebula-logger/core/main/logger-engine/classes/Logger.cls | 2 +- .../permissionsets/LoggerLogCreator.permissionset-meta.xml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/nebula-logger/core/main/logger-engine/classes/Logger.cls b/nebula-logger/core/main/logger-engine/classes/Logger.cls index f2d00b733..d2ac2c736 100644 --- a/nebula-logger/core/main/logger-engine/classes/Logger.cls +++ b/nebula-logger/core/main/logger-engine/classes/Logger.cls @@ -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); diff --git a/nebula-logger/core/main/logger-engine/permissionsets/LoggerLogCreator.permissionset-meta.xml b/nebula-logger/core/main/logger-engine/permissionsets/LoggerLogCreator.permissionset-meta.xml index 10943564a..764510c68 100644 --- a/nebula-logger/core/main/logger-engine/permissionsets/LoggerLogCreator.permissionset-meta.xml +++ b/nebula-logger/core/main/logger-engine/permissionsets/LoggerLogCreator.permissionset-meta.xml @@ -12,10 +12,6 @@ FlowLogEntry true - - FlowLogger - true - FlowRecordLogEntry true