DUNE/Tasks: Added function to retrieve task's debug level.