Repository navigation
Commit 7e450cf
committed
Remove verbose LLM stream logging and add authorization header sanitization to logger
- Update the `Logger` utility to automatically sanitize Axios errors by redacting the `Authorization` header to prevent API key leaks, and remove the `Logger.info` statements in `send-llm-message.ts` that log the full request body, streaming tokens, and complete responses.
├── apps
│ └── editor
│ └── src
│ ├── commands
│ │ ├── code-at-cursor-command
│ │ │ └── utils
│ │ │ └── perform-code-at-cursor.ts
│ │ └── generate-commit-message-commands
│ │ └── utils
│ │ └── generate-commit-message-with-api.ts
│ ├── features
│ │ └── search-files
│ │ └── utils
│ │ └── search-files-by-intelligent.ts
│ ├── services
│ │ ├── model-fetcher.ts
│ │ └── prompt-view-api-calls-manager.ts
│ ├── utils
│ │ └── send-llm-message.ts
│ └── views
│ └── prompt
│ └── backend
│ └── message-handlers
│ ├── handle-make-api-call.ts
│ ├── handle-voice-input.ts
│ └── utils
│ └── patch-repair-utils.ts
└── packages
└── shared
└── src
└── utils
└── logger.ts1 parent 2c404fc commit 7e450cf
2 files changed
Lines changed: 68 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | 151 | | |
158 | 152 | | |
159 | 153 | | |
| |||
162 | 156 | | |
163 | 157 | | |
164 | 158 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 159 | | |
169 | 160 | | |
170 | 161 | | |
| |||
335 | 326 | | |
336 | 327 | | |
337 | 328 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | 329 | | |
350 | 330 | | |
351 | 331 | | |
| |||
420 | 400 | | |
421 | 401 | | |
422 | 402 | | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | 403 | | |
437 | 404 | | |
438 | 405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
4 | 48 | | |
5 | 49 | | |
6 | 50 | | |
| |||
9 | 53 | | |
10 | 54 | | |
11 | 55 | | |
12 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
13 | 64 | | |
14 | 65 | | |
15 | 66 | | |
| |||
18 | 69 | | |
19 | 70 | | |
20 | 71 | | |
21 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
22 | 80 | | |
23 | 81 | | |
24 | 82 | | |
| |||
27 | 85 | | |
28 | 86 | | |
29 | 87 | | |
30 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
31 | 96 | | |
32 | 97 | | |
0 commit comments