mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 08:21:57 -04:00
log should be private
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user