mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-04-02 15:11:58 -04:00
Add logging
This commit is contained in:
@@ -19,10 +19,15 @@ class ItemSyncService < SyncServiceBase
|
||||
|
||||
# Map relevant attributes from the QBO Employee to the local Employee model
|
||||
def process_attributes(local, remote)
|
||||
log "Processing Item ##{remote.id}"
|
||||
local.id = remote.id
|
||||
local.description = remote.description
|
||||
local.unit_price = remote.unit_price
|
||||
local.active = remote.active?
|
||||
end
|
||||
|
||||
def log(msg)
|
||||
Rails.logger.info "[ItemSyncService] #{msg}"
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user