- Replace direct database connection establishment with shared `establish_pg_connection` utility - Add "llm" to required components list in bootstrap manager - Lower default RUST_LOG level from debug to info in VSCode config - Clean up imports and connection error messages - Remove hardcoded database URL strings in favor of centralized connection handling The changes improve code maintainability by centralizing database connection logic and adding support for the new LLM component in the bootstrap process.
42 lines
1 KiB
JSON
42 lines
1 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug executable 'botserver'",
|
|
"cargo": {
|
|
"args": ["build", "--bin=botserver", "--package=botserver"],
|
|
"filter": {
|
|
"name": "botserver",
|
|
"kind": "bin"
|
|
}
|
|
},
|
|
"args": [],
|
|
"env": {
|
|
"RUST_LOG": "info"
|
|
},
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug unit tests in executable 'botserver'",
|
|
"cargo": {
|
|
"args": ["test", "--no-run", "--bin=botserver", "--package=botserver"],
|
|
"filter": {
|
|
"name": "botserver",
|
|
"kind": "bin"
|
|
}
|
|
},
|
|
"args": [],
|
|
"env": {
|
|
"RUST_LOG": "trace"
|
|
},
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
]
|
|
}
|