-
Notifications
You must be signed in to change notification settings - Fork 0
PR: cursor_new_oma_req_review → cursor_new_oma_req #68
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -8,11 +8,12 @@ const { getIO } = require('../config/socket'); | |||
|
|
||||
| function parseDeliveryDate(dateStr) { | ||||
| if (!dateStr) return null; | ||||
|
|
||||
| console.log('parseDeliveryDate', dateStr); | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove ad-hoc payload logging from webhook processing path. Line 11 logs payload-derived data on every webhook call; this adds noisy production logs and unnecessary data retention. Prefer removing this or gating it behind a proper debug logger flag. Proposed change- console.log('parseDeliveryDate', dateStr);📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||
| const parts = dateStr.split('/'); | ||||
| if (parts.length === 3) { | ||||
| return `${parts[2]}-${parts[1].padStart(2, '0')}-${parts[0].padStart(2, '0')}`; | ||||
| } | ||||
|
|
||||
| return dateStr; | ||||
| } | ||||
|
|
||||
|
|
||||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -115,6 +115,7 @@ async function logPrinterValidationFailed(orderId, department, reason) { | |||
| } | ||||
|
|
||||
| async function logManualPrintTriggered(orderId, department) { | ||||
| console.log('logManualPrintTriggered', orderId, department); | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove redundant service-level debug log before timeline write. Line 118 writes a raw debug log for data already captured by the timeline event; this increases log volume without adding durable value. Proposed change- console.log('logManualPrintTriggered', orderId, department);📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||
| await logEvent( | ||||
| orderId, | ||||
| 'MANUAL_PRINT_TRIGGERED', | ||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop direct
console.logof print trigger parameters.Lines 13-14 log
order_id/department/typeper request; this is noisy and leaks internal identifiers into raw logs. Use structured logger with level controls if you need diagnostics.Proposed change
📝 Committable suggestion
🤖 Prompt for AI Agents