Skip to content

Commit

Permalink
log submit
Browse files Browse the repository at this point in the history
  • Loading branch information
InventivetalentDev committed Jan 29, 2025
1 parent 8622140 commit 5ddaaab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/models/v2/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ async function v2SubmitGeneratorJob(req: GenerateV2Request, res: Response<V2Gene
// preliminary rate limiting
if (req.client.useDelayRateLimit()) {
req.nextRequest = await trafficService.updateLastAndNextRequest(req.clientInfo, 200);
Log.l.debug(`next request at ${ req.nextRequest }`);
Log.l.debug(`${ req.breadcrumb } next request at ${ req.nextRequest }`);
}
if (req.client.usePerMinuteRateLimit()) {
req.requestsThisMinute = (req.requestsThisMinute || 0) + 1;
Expand Down Expand Up @@ -599,6 +599,7 @@ async function v2SubmitGeneratorJob(req: GenerateV2Request, res: Response<V2Gene
priority: req.client.getPriority()
};
const job = await getClient().submitRequest(request, queueOptions);
Log.l.info(`${ req.breadcrumb } Submitted Job ${ job.id } (priority: ${ job.priority })`);
return {job};
});
}
Expand Down

0 comments on commit 5ddaaab

Please sign in to comment.