Commit 3967bd7
fix: Respect BASIC_MEMORY_LOG_LEVEL and BASIC_MEMORY_CONSOLE_LOGGING environment variables
Resolves #255 where console logging configuration was not properly respecting environment variables.
Changes:
- BASIC_MEMORY_LOG_LEVEL environment variable is now read and used before falling back to config file
- BASIC_MEMORY_CONSOLE_LOGGING now accepts multiple truthy values: "true", "1", "yes", "on" (case-insensitive)
- Fixed timing issue where logging setup occurred before environment variables could be processed
The logging setup function now directly reads environment variables first, ensuring user settings are respected immediately during application startup.
Signed-off-by: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Joe P <joe@basicmemory.com>1 parent b814d40 commit 3967bd7
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
356 | 363 | | |
357 | 364 | | |
358 | 365 | | |
359 | 366 | | |
360 | 367 | | |
361 | 368 | | |
362 | | - | |
| 369 | + | |
363 | 370 | | |
364 | 371 | | |
365 | 372 | | |
| |||
0 commit comments