Changed usage of debug() to dnet_log()