File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
packages/auth-services/src/queue-manager/src/handlers/pkpMint Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11import { MintPKPRequest } from '@lit-protocol/schemas' ;
22import { getChildLogger } from '@lit-protocol/logger' ;
33
4+ const logger = getChildLogger ( { name : 'PkpMintHandler' } ) ;
5+
46/**
57 * Handles PKP minting tasks.
68 * @param jobData The data for the job, expected to contain `requestBody`.
@@ -24,11 +26,17 @@ export async function handlePkpMintTask(jobData: {
2426 mintParams
2527 ) ;
2628
27- console . log (
28- `[PkpMintHandler] PKP Minting successful. Token ID: ${ result . data . tokenId . toString ( ) } `
29+ logger . info (
30+ {
31+ tokenId : result . data . tokenId . toString ( ) ,
32+ authMethodId : jobData . requestBody . authMethodId ,
33+ authMethodType : jobData . requestBody . authMethodType ,
34+ scopes : jobData . requestBody . scopes ,
35+ } ,
36+ '[PkpMintHandler] PKP mint successful'
2937 ) ;
3038
31- logger . info ( { result } , '[PkpMintHandler] raw mint result: ' ) ;
39+ logger . debug ( { result } , '[PkpMintHandler] raw mint result' ) ;
3240
3341 const processedResult = {
3442 hash : result . _raw . hash ,
You can’t perform that action at this time.
0 commit comments