dnet_log_raw accepts dnet_node * as first parameter but dnet_node isn't created yet. I can move this code to separate function and use it at both place.