Remove debug logging with Windows paths

The fileAppend calls were using Windows paths which fail on the
Linux production server.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-01-12 19:32:06 -08:00
parent fc371dca3d
commit bd1e4110f6

View file

@ -279,13 +279,6 @@
<cfset data = readJsonBody()>
<!--- Debug logging --->
<cfset logFile = "c:/lucee/tomcat/webapps/ROOT/biz.payfrit.com/api/orders/setLineItem.log">
<cftry>
<cfset fileAppend(logFile, "[#dateTimeFormat(now(), 'yyyy-mm-dd HH:nn:ss')#] Request received: #serializeJSON(data)##chr(10)#")>
<cfcatch><!--- ignore log errors ---></cfcatch>
</cftry>
<cfset OrderID = val( structKeyExists(data,"OrderID") ? data.OrderID : 0 )>
<cfset ParentLineItemID = val( structKeyExists(data,"ParentOrderLineItemID") ? data.ParentOrderLineItemID : 0 )>
<cfset ItemID = val( structKeyExists(data,"ItemID") ? data.ItemID : 0 )>
@ -511,7 +504,6 @@
</cfif>
<cfset apiAbort(payload)>
<cfcatch>
<cfset fileAppend(logFile, "[#dateTimeFormat(now(), 'yyyy-mm-dd HH:nn:ss')#] ERROR in loadCartPayload: #cfcatch.message##chr(10)#")>
<cfset apiAbort({
"OK": false,
"ERROR": "load_cart_error",
@ -522,7 +514,6 @@
</cftry>
<cfcatch>
<cfset fileAppend(logFile, "[#dateTimeFormat(now(), 'yyyy-mm-dd HH:nn:ss')#] OUTER ERROR: #cfcatch.message# | Detail: #(structKeyExists(cfcatch, 'detail') ? cfcatch.detail : '')# | SQL: #(structKeyExists(cfcatch, 'sql') ? cfcatch.sql : '')##chr(10)#")>
<cfset apiAbort({
"OK": false,
"ERROR": "server_error",