Skip to content

Commit 6791934

Browse files
committed
log state log request
1 parent 3447a75 commit 6791934

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/models/schemas/StateLockRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const stateLockRequest = {
2121
identity: Joi.object({
2222
pk: Joi.string().required(),
2323
sk: Joi.string().required(),
24-
}),
24+
}).optional(),
2525
};
2626

2727
export const stateLockRequestSchema = Joi.object(stateLockRequest).label('StateLockRequest');

src/services/GithubService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ export class GithubService {
105105
const tokenSha = crypto.createHash('sha256').update(auth).digest().toString('base64');
106106

107107
console.log(
108-
`Inferring identity (auth: ${auth} sha: ${tokenSha} owner: ${owner}, repo: ${repo}, workspace: ${workspace}, stateLockRequest; ${stateLockRequest})`,
108+
`Inferring identity (auth: ${auth} sha: ${tokenSha} owner: ${owner}, repo: ${repo}, workspace: ${workspace}, stateLockRequest: ${JSON.stringify(
109+
stateLockRequest,
110+
)})`,
109111
);
110112

111113
let storedIdentity: Identity | undefined;

src/services/StateService.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ export class StateService {
207207
{ overwrite: false },
208208
);
209209

210+
console.log('Saved state lock request', saved.attrs);
211+
210212
return saved.attrs;
211213
};
212214

0 commit comments

Comments
 (0)