Necessary changes to build against master again
Moved permission deny logging from VERBOSE to INFO priority, and sanitised the messages a bit.