log should be private

This commit is contained in:
2026-03-02 22:54:26 -05:00
parent 28db5cb8c8
commit 2e2b17fac3

View File

@@ -18,11 +18,6 @@ class CustomerPushService
@customer = customer @customer = customer
end 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. # 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 def push
log "Pushing customer ##{@customer.id} to QBO..." log "Pushing customer ##{@customer.id} to QBO..."
@@ -40,4 +35,11 @@ class CustomerPushService
return @customer return @customer
end end
private
# Log messages with the entity type for better traceability
def log(msg)
Rails.logger.info "[CustomerPushService] #{msg}"
end
end end