mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
Merge pull request #21476 from BerriAI/fix/test-log-record-message-attr
fix(tests): use record.getMessage() instead of record.message for LogRecord
This commit is contained in:
commit
abc4603675
1 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ def test_cost_calculation_uses_debug_level():
|
|||
# Find the cost calculation log records
|
||||
cost_calc_records = [
|
||||
record for record in handler.records
|
||||
if "selected model name for cost calculation" in record.message
|
||||
if "selected model name for cost calculation" in record.getMessage()
|
||||
]
|
||||
|
||||
# Verify that cost calculation logs are at DEBUG level
|
||||
|
|
@ -126,7 +126,7 @@ def test_batch_cost_calculation_uses_debug_level():
|
|||
# Find batch cost calculation log records
|
||||
batch_cost_records = [
|
||||
record for record in handler.records
|
||||
if "Calculating batch cost per token" in record.message
|
||||
if "Calculating batch cost per token" in record.getMessage()
|
||||
]
|
||||
|
||||
# Verify logs exist and are at DEBUG level
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue