From 2e2b17fac38e2991406d5add346141503852739d Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 2 Mar 2026 22:54:26 -0500 Subject: [PATCH] log should be private --- app/services/customer_push_service.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/services/customer_push_service.rb b/app/services/customer_push_service.rb index 5fc1fe1..1442caa 100644 --- a/app/services/customer_push_service.rb +++ b/app/services/customer_push_service.rb @@ -18,11 +18,6 @@ class CustomerPushService @customer = customer end - # Log messages with the entity type for better traceability - def log(msg) - Rails.logger.info "[CustomerPushService] #{msg}" - end - # Pushes the customer data to QuickBooks Online. This method handles the communication with QBO, including authentication and error handling. It uses the QBO client to send the customer data and logs the process for monitoring and debugging purposes. If the push is successful, it returns the customer record; otherwise, it logs the error and returns false. def push log "Pushing customer ##{@customer.id} to QBO..." @@ -40,4 +35,11 @@ class CustomerPushService return @customer end + private + + # Log messages with the entity type for better traceability + def log(msg) + Rails.logger.info "[CustomerPushService] #{msg}" + end + end \ No newline at end of file