logging to determine 'can't convert Array to String error'