Skip to content

Commit 0977213

Browse files
committed
fix: imrove allowed debug logs in HEAVY_DEBUG
1 parent aeaa0be commit 0977213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/modules/restApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export async function interpretResource(
5757
Object.entries(resource.options.allowedActions).map(
5858
async ([key, value]: [string, AllowedActionValue]) => {
5959
if (process.env.HEAVY_DEBUG) {
60-
console.log(`🪲🚥check allowed ${key}, ${value}`)
60+
console.log(`🪲🚥${resource.resourceId}: allowed ${key}: ${value}`)
6161
}
6262
if (!neededActions.includes(key as AllowedActionsEnum)) {
6363
allowedActions[key] = false;

0 commit comments

Comments
 (0)