Skip to content

Commit

Permalink
Merge pull request #6 from vadimklimov/master
Browse files Browse the repository at this point in the history
save-payload-to-mpl-attachment-with-log-level.groovy: Use properties SAP_MPL_LogLevel_*
  • Loading branch information
fatihpense authored Dec 19, 2023
2 parents 14f224e + e3492a9 commit bae8549
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 bae8549

Please sign in to comment.