Skip to content

Commit 26f52ec

Browse files
inerciaCopilot
andcommitted
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4ceb244 commit 26f52ec

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/usage-agent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ MCPShell has agent-specific configuration that includes model definitions with p
5353

5454
## Running the Agent
5555

56-
With the tools degined in `disk-diagnostics-ro.yaml`, you can run:
56+
With the tools defined in `disk-diagnostics-ro.yaml`, you can run:
5757

5858
```bash
5959
mcpshell agent \
@@ -90,7 +90,7 @@ agent:
9090
name: "llama3"
9191
```
9292

93-
- Load system prompts from the agent configuration (if any, or use teh default ones).
93+
- Load system prompts from the agent configuration (if any, or use the default ones).
9494
- Load tools from `disk-diagnostics-ro.yaml`.
9595
- Connect to the configured LLM API.
9696
- Process the LLM's responses and execute tool calls as requested.

pkg/common/panic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ func RecoverPanic() bool {
1919

2020
// Log panic information to the logger if provided
2121
if logger != nil {
22-
logger.Debug("PANIC RECOVERED: %v", r)
23-
logger.Debug("Stack trace:\n%s", stackTrace)
22+
logger.Error("PANIC RECOVERED: %v", r)
23+
logger.Error("Stack trace:\n%s", stackTrace)
2424
}
2525

2626
// Always log to stderr for immediate visibility

0 commit comments

Comments
 (0)