Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect coding in the Groovy Script example #92

Closed
michaelarter opened this issue Jul 24, 2024 · 5 comments
Closed

Incorrect coding in the Groovy Script example #92

michaelarter opened this issue Jul 24, 2024 · 5 comments
Assignees
Labels
contribution Valuable Contribution type/incorrect-statement Statements in the documentation are incorrect.

Comments

@michaelarter
Copy link

Issue description

Hi there,
I would like to point out a couple of errors in the Groovy Script example.

The following 3 lines:-
messageLog.message.addCustomerHeaderProperty("Log Level", logLevel)
messageLog.message.addCustomerHeaderProperty("Internal Log Level", logLevelInternal)
messageLog.message.addCustomerHeaderProperty("External Log Level", logLevelExternal)

are incorrect.
There is no property 'message' for object messageLog and .addCustomerHeaderProperty should be .addCustomHeaderProperty.

So the 3 lines should read:-
messageLog.addCustomHeaderProperty("Log Level", logLevel)
messageLog.addCustomHeaderProperty("Internal Log Level", logLevelInternal)
messageLog.addCustomHeaderProperty("External Log Level", logLevelExternal)

Cheers,

Michael Arter
Discovery Consulting

Feedback Type (Optional)

None

Page Title on SAP Help Portal (prefilled)

Setting Log Levels

Page URL on SAP Help Portal (prefilled)

https://help.sap.com/docs/cloud-integration/sap-cloud-integration/setting-log-levels

@SrutiSagaram
Copy link

@michaelarter
Thank you for your feedback. We will take a look and get back.

@pe-gu pe-gu added contribution Valuable Contribution type/incorrect-statement Statements in the documentation are incorrect. labels Aug 9, 2024
@pe-gu
Copy link
Contributor

pe-gu commented Aug 9, 2024

Dear @michaelarter,
thanks also from my side for your contribution! I have corrected and tested the script and the topic is updated.

@pe-gu pe-gu closed this as completed Aug 9, 2024
@pe-gu
Copy link
Contributor

pe-gu commented Aug 9, 2024

Dear @michaelarter,
thanks also from my side for your contribution! I have corrected and tested the script and the topic is updated.

Copy link

sap-doc-bot bot commented Aug 9, 2024

Thank you for your valuable feedback contribution, @michaelarter! So that we can recognize your contribution in the SAP Community, please check your SAP Community user ID (this is a number) in your personal settings page and share it with us in a reply to this comment. Make sure you just include the number in the reply.

Your user ID is displayed as follows:

Change display name for User ID N

where N is your user ID. For example, 53 is the user ID of the user 'qmacro'.

Please note that we are currently refactoring our profile and badge system on the SAP Community, and will start assigning badges again when that's complete.

@michaelarter
Copy link
Author

michaelarter commented Aug 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution Valuable Contribution type/incorrect-statement Statements in the documentation are incorrect.
Projects
None yet
Development

No branches or pull requests

3 participants