get logger earlier in function
update test - relations is empty array, not unset