Skip to content

Commit 673cabe

Browse files
committed
fix: debug
1 parent a8a3b1c commit 673cabe

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/analysisWorker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ class AnalysisWorker {
171171
console.log(`✅ [WORKER] Analysis completed for ${project_id}. Extracted ${snippets.length} snippets.`);
172172

173173
if (job) {
174+
console.log('ciao test');
174175
// Step 5: Emit final result
175176
const room = `project_${project_id}`;
176177

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ app.post('/sendMessage', async (req, res) => {
147147
}
148148
});
149149
}
150+
console.log('ECCOMI');
150151

151152
const messageResponse = await this.potpieClient.sendMessage(projectId, questionPrompt);
152153
if (!messageResponse.success) throw new Error(`Failed to create conversation for project ${projectId}. Error: ${JSON.stringify(response.error)}`);
@@ -158,7 +159,7 @@ app.post('/sendMessage', async (req, res) => {
158159
status: 'finished',
159160
};
160161
} catch (err) {
161-
console.error('sendMessage endpoint error:', error);
162+
console.error('sendMessage endpoint error:', err);
162163
res.status(500).json({
163164
success: false,
164165
error: 'Internal server error during sendMessage process',

0 commit comments

Comments
 (0)