Skip to content

Commit 948ac7d

Browse files
committed
remove console logs
1 parent 8aa7438 commit 948ac7d

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

client/packages/lowcoder/src/comps/comps/chatComp/components/ChatCoreMain.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,9 @@ export function ChatCoreMain({
7979
const { state, actions } = useChatContext();
8080
const [isRunning, setIsRunning] = useState(false);
8181

82-
console.log("CHAT CORE STATE", state);
83-
8482
// Get messages for current thread
8583
const currentMessages = actions.getCurrentMessages();
8684

87-
88-
console.log("CURRENT MESSAGES", currentMessages);
89-
9085
// Notify parent component of conversation changes
9186
useEffect(() => {
9287
onConversationUpdate?.(currentMessages);
@@ -132,8 +127,6 @@ export function ChatCoreMain({
132127
// Use the message handler (no more complex logic here!)
133128
const response = await messageHandler.sendMessage(userMessage.text);
134129

135-
console.log("AI RESPONSE", response);
136-
137130
const assistantMessage: ChatMessage = {
138131
id: generateId(),
139132
role: "assistant",

client/packages/lowcoder/src/comps/comps/chatComp/handlers/messageHandlers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ export class QueryHandler implements MessageHandler {
7878
)
7979
);
8080

81-
console.log("QUERY RESULT", result);
82-
83-
return result.message
81+
return result.message
8482
} catch (e: any) {
8583
throw new Error(e?.message || "Query execution failed");
8684
}

client/packages/lowcoder/src/comps/comps/chatComp/utils/storageFactory.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export function createChatStorage(tableName: string): ChatStorage {
4141
)
4242
`);
4343

44-
console.log(`✅ Chat database initialized: ${dbName}`);
4544
} catch (error) {
4645
console.error(`Failed to initialize chat database ${dbName}:`, error);
4746
throw error;
@@ -170,7 +169,6 @@ export function createChatStorage(tableName: string): ChatStorage {
170169

171170
// Reinitialize fresh
172171
await this.initialize();
173-
console.log(`✅ Database reset and reinitialized: ${dbName}`);
174172
} catch (error) {
175173
console.error("Failed to reset database:", error);
176174
throw error;

0 commit comments

Comments
 (0)