Skip to content

Bugfix: Apex code snippets auto-truncated

Compare
Choose a tag to compare
@jongpie jongpie released this 03 Sep 22:41
· 15 commits to main since this release
ff06c25

Core Unlocked Package Changes

Fixed #756 by truncating the Apex code snippets that are saved in the LogEntry__c fields OriginSourceSnippet__c and ExceptionSourceSnippet__c

  • Previously, the code snippet was only limited by the number of lines of code - but for Apex classes & triggers that have very looooooooooooong code on some lines, the code snippet could cause the JSON value to exceed the corresponding field's max length
  • Now, the code snippet only grabs the first 1,500 characters - both fields are set to a max of 2,000 characters, allowing 500 characters for the remaining JSON data

Installation Info

Core Unlocked Package - no namespace

Full Changelog: v4.14.8...v4.14.9