mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
log should be private
This commit is contained in:
1 parent
28db5cb8c8
commit
2e2b17fac3
1 file changed
+7
-5
@@ -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
|
||||
Reference in new issue
Block a user