Add logging

This commit is contained in:
2026-03-08 20:10:14 -04:00
parent e58bbafda7
commit 91cdd86c12

View File

@@ -19,10 +19,15 @@ class ItemSyncService < SyncServiceBase
# Map relevant attributes from the QBO Employee to the local Employee model # Map relevant attributes from the QBO Employee to the local Employee model
def process_attributes(local, remote) def process_attributes(local, remote)
log "Processing Item ##{remote.id}"
local.id = remote.id local.id = remote.id
local.description = remote.description local.description = remote.description
local.unit_price = remote.unit_price local.unit_price = remote.unit_price
local.active = remote.active? local.active = remote.active?
end end
def log(msg)
Rails.logger.info "[ItemSyncService] #{msg}"
end
end end