New Release v4.7.5 - Made the behavior of Logger.setScenario() configurable via new LoggerParameter__mdt record #322
jongpie
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Log__c.Scenario__c
): you may need to update the new CMDT record in your org, if you prefer to keep the previous behavior for setting scenarios. In previous releases, the last scenario specified in a transaction would be used, but going forward, by default, the first scenario specified will now be used.Resolved #317 by adding a new CMDT record
LoggerParameter.UseFirstSpecifiedScenario
to control if the first or last specified value is used whenLogger.setScenario(String)
is called multiple times in the same transaction.When the CMDT record has
Value__c = 'true'
(the new default value), this script will output 'first' for both debug statements:When the CMDT record has
Value__c = 'false'
, this script will output 'first' for the... first debug statement, and 'second' for the second. This configurationprovides the same behavior used in prrvious releases (buy it will not be the defauly behavior going forward)
This discussion was created from the release Made the behavior of Logger.setScenario() configurable via new LoggerParameter__mdt record.
Beta Was this translation helpful? Give feedback.
All reactions