We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e72761f commit f545064Copy full SHA for f545064
src/permission/fs_permission.cc
@@ -69,7 +69,16 @@ bool is_tree_granted(
69
resolved_param.erase(0, 2);
70
}
71
#endif
72
- return granted_tree->Lookup(resolved_param, true);
+ auto _is_granted = granted_tree->Lookup(resolved_param, true);
73
+ if (node::per_process::enabled_debug_list.enabled(
74
+ node::DebugCategory::PERMISSION_MODEL)) [[unlikely]] {
75
+ node::per_process::Debug(node::DebugCategory::PERMISSION_MODEL,
76
+ "Access %d to %s\n",
77
+ _is_granted,
78
+ param);
79
+ }
80
+
81
+ return _is_granted;
82
83
84
static const char* kBoxDrawingsLightUpAndRight = "└─ ";
0 commit comments