Skip to content

Commit e84d3c0

Browse files
committed
remove extra logging
1 parent 0db2d55 commit e84d3c0

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/routes/copilotRequest/approveRequest.service.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import {
77
CONNECT_NOTIFICATION_EVENT,
88
COPILOT_OPPORTUNITY_STATUS,
99
COPILOT_REQUEST_STATUS,
10-
TEMPLATE_IDS, USER_ROLE,
10+
TEMPLATE_IDS,
11+
USER_ROLE,
1112
} from '../../constants';
1213
import util from '../../util';
1314
import { createEvent } from '../../services/busApi';
@@ -26,8 +27,6 @@ module.exports = async (req, data, existingTransaction) => {
2627

2728
return resolveTransaction(existingTransaction, async (transaction) => {
2829
try {
29-
req.log.debug('approveRequest: finding project', { projectId });
30-
3130
const existingProject = await models.Project.findOne({
3231
where: { id: projectId, deletedAt: { $eq: null } },
3332
transaction,
@@ -40,7 +39,6 @@ module.exports = async (req, data, existingTransaction) => {
4039
}
4140

4241
const copilotRequest = await models.CopilotRequest.findByPk(copilotRequestId, { transaction });
43-
req.log.debug('approveRequest: found copilot request', { copilotRequestId: copilotRequest.id });
4442

4543
if (!copilotRequest) {
4644
const err = new Error(`no active copilot request found for copilot request id ${copilotRequestId}`);
@@ -49,7 +47,6 @@ module.exports = async (req, data, existingTransaction) => {
4947
}
5048

5149
await copilotRequest.update({ status: COPILOT_REQUEST_STATUS.APPROVED }, { transaction });
52-
req.log.debug('Copilot request status updated to APPROVED', { copilotRequestId });
5350

5451
const existingOpportunity = await models.CopilotOpportunity.findOne({
5552
where: {
@@ -72,7 +69,6 @@ module.exports = async (req, data, existingTransaction) => {
7269
// Send notifications
7370
try {
7471
const roles = await util.getRolesByRoleName(USER_ROLE.TC_COPILOT, req.log, req.id);
75-
req.log.debug('Roles fetched', { roles });
7672

7773
const { subjects = [] } = await util.getRoleInfo(roles[0], req.log, req.id);
7874
const emailEventType = CONNECT_NOTIFICATION_EVENT.EXTERNAL_ACTION_EMAIL;

src/routes/copilotRequest/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = [
6060

6161
try {
6262
const copilotRequest = await models.sequelize.transaction(async (transaction) => {
63-
req.log.debug('Starting create copilot request transaction', { data });
63+
req.log.debug('Create copilot request transaction', { data });
6464

6565
const existingProject = await models.Project.findOne({
6666
where: { id: projectId, deletedAt: { $eq: null } },

0 commit comments

Comments
 (0)