Update log handler to use debug
Fail in ?setPermission if permission is already set