add logs to track permission inject

This commit is contained in:
Maidul Islam
2024-05-21 22:35:13 -04:00
parent 880289217e
commit 440c77965c

View File

@@ -1,5 +1,6 @@
import fp from "fastify-plugin";
import { logger } from "@app/lib/logger";
import { ActorType } from "@app/services/auth/auth-type";
// inject permission type needed based on auth extracted
@@ -37,5 +38,7 @@ export const injectPermission = fp(async (server) => {
authMethod: null
};
}
logger.info(`injectPermission: Injecting permissions for [permissionsForIdentity=${req?.permission?.id}]`);
});
});