Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: remove logs

Daniel Hougaard0de15bf70cfa
diff --git a/backend/src/ee/services/access-approval-request/access-approval-request-service.ts b/backend/src/ee/services/access-approval-request/access-approval-request-service.ts
index 9dda4313c7..2b2758b2e6 100644
--- a/backend/src/ee/services/access-approval-request/access-approval-request-service.ts
+++ b/backend/src/ee/services/access-approval-request/access-approval-request-service.ts
@@ -225,7 +225,6 @@ export const accessApprovalRequestServiceFactory = ({
const requesterFullName = `${requestedByUser.firstName} ${requestedByUser.lastName}`;
const approvalUrl = `${cfg.SITE_URL}/secret-manager/${project.id}/approval`;
- console.log("triggering workflow integration notification");
await triggerWorkflowIntegrationNotification({
input: {
notification: {
diff --git a/backend/src/lib/workflow-integrations/trigger-notification.ts b/backend/src/lib/workflow-integrations/trigger-notification.ts
index 58d229d968..9f123de2ed 100644
--- a/backend/src/lib/workflow-integrations/trigger-notification.ts
+++ b/backend/src/lib/workflow-integrations/trigger-notification.ts
@@ -49,15 +49,11 @@ export const triggerWorkflowIntegrationNotification = async (dto: TTriggerWorkfl
}
}
- console.log("microsoftTeamsConfig", microsoftTeamsConfig);
if (microsoftTeamsConfig) {
if (notification.type === TriggerFeature.ACCESS_REQUEST) {
if (microsoftTeamsConfig.isAccessRequestNotificationEnabled && microsoftTeamsConfig.accessRequestChannels) {
const { success, data } = MicrosoftTeamsChannelsSchema.safeParse(microsoftTeamsConfig.accessRequestChannels);
- console.log("success", success);
- console.log("data", data);
-
if (success && data) {
await microsoftTeamsService
.sendNotification({
diff --git a/backend/src/services/microsoft-teams/microsoft-teams-fns.ts b/backend/src/services/microsoft-teams/microsoft-teams-fns.ts
index f25a28fa1c..30e2d8fb5a 100644
--- a/backend/src/services/microsoft-teams/microsoft-teams-fns.ts
+++ b/backend/src/services/microsoft-teams/microsoft-teams-fns.ts
@@ -303,9 +303,7 @@ export class TeamsBot extends TeamsActivityHandler {
}
async run(context: TurnContext) {
- console.log("Running Microsoft Teams bot", {
- context
- });
+ logger.info(context, "Processing Microsoft Teams context");
await super.run(context);
}
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsConfigRow.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsConfigRow.tsx
index e85ea1e271..f564bcc622 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsConfigRow.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsConfigRow.tsx
@@ -51,8 +51,6 @@ export const MicrosoftTeamsConfigRow = ({ handlePopUpOpen }: Props) => {
return null;
}
- console.log("after");
-
return (
<Tr>
<Td className="flex max-w-xs items-center overflow-hidden text-ellipsis">
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx
index 40d9585275..3637745bc5 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx
@@ -162,9 +162,6 @@ export const MicrosoftTeamsIntegrationForm = ({ onClose }: Props) => {
const selectedAccessRequestTeamId = watch("accessRequestChannels.teamId");
const selectedSecretRequestTeamId = watch("secretRequestChannels.teamId");
- console.log("selectedAccessRequestTeamId", selectedAccessRequestTeamId);
- console.log("selectedSecretRequestTeamId", selectedSecretRequestTeamId);
-
const selectedMicrosoftTeamsIntegrationId = watch("microsoftTeamsIntegrationId");
const accessRequestNotificationsEnabled = watch("isAccessRequestNotificationEnabled");
@@ -188,9 +185,6 @@ export const MicrosoftTeamsIntegrationForm = ({ onClose }: Props) => {
.map((team) => team.channels)
.flat();
- console.log("selectableAccessRequestChannelIds", selectableAccessRequestChannelIds);
- console.log("selectableSecretRequestChannelIds", selectableSecretRequestChannelIds);
-
const channelIdToName = [
...(selectableAccessRequestChannelIds || []),
...(selectableSecretRequestChannelIds || [])
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackConfigRow.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackConfigRow.tsx
index 70a707656b..01016acef4 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackConfigRow.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackConfigRow.tsx
@@ -47,8 +47,6 @@ export const SlackConfigRow = ({ handlePopUpOpen }: Props) => {
return null;
}
- console.log("after slakc");
-
return (
<Tr>
<Td className="flex max-w-xs items-center overflow-hidden text-ellipsis">
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx
index 72d4ced857..6bcaa6ac1a 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx
@@ -166,7 +166,6 @@ export const SlackIntegrationForm = ({ onClose }: Props) => {
isDisabled={!isAllowed}
placeholder="None"
onValueChange={(val) => {
- console.log("Selecting ", val);
onChange(val);
}}
className="w-full"