Skip to content

Commit

Permalink
save-payload-to-mpl-attachment-with-log-level.groovy: Use properties …
Browse files Browse the repository at this point in the history
…SAP_MPL_LogLevel_*
  • Loading branch information
vadimklimov committed Dec 15, 2023
1 parent 14f224e commit e3492a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import com.sap.gateway.ip.core.customdev.util.Message

Message processData(Message message) {

String logLevel = message.getProperty('SAP_MessageProcessingLogConfiguration').logLevel.toString()
String logLevel = message.getProperty('SAP_MPL_LogLevel_Overall')

if (logLevel in ['DEBUG', 'TRACE']) {
messageLogFactory.getMessageLog(message)?.addAttachmentAsString('Message body', message.getBody(String), 'text/plain')
Expand Down

0 comments on commit e3492a9

Please sign in to comment.