make hash_array to a local var passed to log method as param