Skip to content

Commit cf8823e

Browse files
authored
[bug] Fix log level prints (#1661)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Fixes log level check in `log_event_internal()` in `logger.rs` to correctly skip logging if the level is not enabled. > > - **Bug Fix**: > - Fixes log level check in `log_event_internal()` in `logger.rs` to correctly skip logging if the level is not enabled. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 9f3713c. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
1 parent ffe81a3 commit cf8823e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/baml-lib/baml-log/src/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ pub fn log_event_internal<T: Loggable>(
647647
.to_logger();
648648

649649
// Skip if level is not enabled
650-
if level.is_at_least(config.level) {
650+
if !level.is_at_least(config.level) {
651651
return;
652652
}
653653

0 commit comments

Comments
 (0)