Skip to content

Add option to log order creation requests and responses (#28831)#72

Merged
DWDBE merged 1 commit into
mainfrom
dbe/28831-Add-option-to-log-order-create-requests-and-responses
Jul 7, 2026
Merged

Add option to log order creation requests and responses (#28831)#72
DWDBE merged 1 commit into
mainfrom
dbe/28831-Add-option-to-log-order-create-requests-and-responses

Conversation

@DWDBE

@DWDBE DWDBE commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

New 'Log order creation request and response' setting in the Logs group. When enabled, order creation ERP calls (CreateOrder=true) are always written to the log — including the request, response, connection errors, and response errors — even when general request/response logging is off.

Summary

  • Adds a new Log order creation request and response checkbox in the LI Logs settings group
  • When enabled, all ERP communication for orders where CreateOrder=true is written to the log (request, response, connection errors, response errors) — independently of the general Log request and response content toggle
  • Closes work item #28831

Changes

  • Settings.cs / ISettings.cs — new LogOrderCreationRequests property, copied in UpdateTargetFromSource
  • LiveIntegrationAddIn.cs — new AddIn parameter in the Logs group (order 375)
  • Logger.csIsOrderCreationContext flag; IsAllowedAddToLog passes DebugInfo, ConnectionError, and ResponseError when the flag is set and LogOrderCreationRequests is enabled
  • OrderHandler.cs — sets logger.IsOrderCreationContext = createOrder before GetResponse, resets after

Test plan

  • Enable the new setting, disable general request/response logging — confirm only order creation calls appear in the log
  • Disable the new setting — confirm no extra entries appear
  • Enable both settings — confirm no double-write (each message logged once)
  • Trigger a connection error on an order creation — confirm it is logged when the new setting is on

New 'Log order creation request and response' setting in the Logs group.
When enabled, order creation ERP calls (CreateOrder=true) are always
written to the log — including the request, response, connection errors,
and response errors — even when general request/response logging is off.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@DWDBE DWDBE requested review from a team as code owners July 7, 2026 11:48
@DWDBE DWDBE requested a review from MatthiasSort July 7, 2026 11:49
@DWDBE DWDBE merged commit 83fa46a into main Jul 7, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants