Fix type definition
Adjust logging on detail level changes