Skip to content

Commit 3cf4452

Browse files
committed
src,permission: add debug log on is_tree_granted
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
1 parent e72761f commit 3cf4452

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/permission/fs_permission.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,13 @@ bool is_tree_granted(
6969
resolved_param.erase(0, 2);
7070
}
7171
#endif
72-
return granted_tree->Lookup(resolved_param, true);
72+
auto _is_granted = granted_tree->Lookup(resolved_param, true);
73+
node::Debug(env, node::DebugCategory::PERMISSION_MODEL,
74+
"Access %d to %s\n",
75+
_is_granted,
76+
param);
77+
78+
return _is_granted;
7379
}
7480

7581
static const char* kBoxDrawingsLightUpAndRight = "└─ ";

0 commit comments

Comments
 (0)