mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
3330e5caf1
commit
d4bc5b0971
1 file changed
+8
-1
@@ -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 = "└─ ";
|
||||
|
||||
Reference in new issue
Block a user