Skip to content

Commit

Permalink
DOP-4549 more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Apr 15, 2024
1 parent 2aaceb2 commit 4d3d35f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,13 @@ export const getDeployableJobs = async (
export const DeployRepo = async (event: any = {}): Promise<any> => {
const consoleLogger = new ConsoleLogger();
const slackConnector = new SlackConnector(consoleLogger, c);
consoleLogger.info('deployRepo 190', 'testing request reveived');
consoleLogger.info('event', event);

if (!slackConnector.validateSlackRequest(event)) {
return prepResponse(401, 'text/plain', 'Signature Mismatch, Authentication Failed!');
}
consoleLogger.info('deployRepo', 'testing deploy repo ');
consoleLogger.info('deployRepo 195', 'testing slack validation passed');
const client = new mongodb.MongoClient(c.get('dbUrl'));
await client.connect();
const db = client.db(c.get('dbName'));
Expand Down

0 comments on commit 4d3d35f

Please sign in to comment.