|
String logEntry = 'Query:\n' + query + '\n\nResults:\n' + JSON.serializePretty(results); |
the mentioned method gets called for some reason. If the final string will become longer than 6.000.000 characters
you will get a "System.StringException" with "String length exceeds maximum: 6000000"