src,permission: add debug log on is_tree_granted

Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
PR-URL: https://github.com/nodejs/node/pull/60668
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
Rafael Gonzaga authored and GitHub committed 2025-11-16 19:41:38 +00:00
1 parent 3330e5caf1
commit d4bc5b0971
1 file changed
+8 -1
+8 -1
View File
@@ -69,7 +69,14 @@ bool is_tree_granted(
resolved_param.erase(0, 2);
}
#endif
return granted_tree->Lookup(resolved_param, true);
auto _is_granted = granted_tree->Lookup(resolved_param, true);
node::Debug(env,
node::DebugCategory::PERMISSION_MODEL,
"Access %d to %s\n",
_is_granted,
param);
return _is_granted;
}
static const char* kBoxDrawingsLightUpAndRight = "└─ ";