Skip to content

Fix ConsoleLogging log level handling#358

Merged
sandrohanea merged 1 commit intosandrohanea:mainfrom
umlx5h:fix-console-logging
Mar 13, 2025
Merged

Fix ConsoleLogging log level handling#358
sandrohanea merged 1 commit intosandrohanea:mainfrom
umlx5h:fix-console-logging

Conversation

@umlx5h
Copy link
Contributor

@umlx5h umlx5h commented Mar 13, 2025

This only logs INFO or higher when it is executed.

LogProvider.AddConsoleLogging(WhisperLogLevel.Debug);

I thought the expected behavior was to also output DEBUG, so I modified the condition.


Although not directly related to PR, the order of these log levels seemed strange to me.

public enum WhisperLogLevel
{
None = 0,
Info = 1,
Warning = 2,
Error = 3,
Debug = 4,
Cont = 5
}

I think ERROR is more severe than INFO, not less severe, as stated in the comments below.

https://github.com/umlx5h/whisper.net/blob/26ea3be73ef12dc3f1605e0d9eb0065736b64dd7/Whisper.net/Logger/LogProvider.cs#L21

@sandrohanea
Copy link
Owner

Hello @umlx5h ,
Indeed, seems that both the severity levels and the condition need to be changed for a more predictable behaviour.

Thanks for your contribution!

@sandrohanea sandrohanea merged commit 53c1f3d into sandrohanea:main Mar 13, 2025
5 of 20 checks passed
sandrohanea added a commit that referenced this pull request Mar 20, 2025
sandrohanea added a commit that referenced this pull request Mar 29, 2025
* Fixed severity order (Higher values are less severe)
See #358

* Bumped whisper.cpp and changed the versioning readme

* Added some extra logs on vulkan build

* aa

* Tried to fix vulkan

* aaa

* dsds

* dasd

* Fix

* fsd

* Updated whisper.cpp to latest experiment

* Tried to disable BMI2 on Win32

* OFF

* Bumped whisper.cpp to latest commit in PR

* One more of

* Removed CROSS_COMPILE a bit (will revert) just for CI and checking the vulkan build like that as well

* reverted vulkan build to cross-compile

* Again

* removed cross-compile for triggering CI like that

* updated whisper.cpp

---------

Co-authored-by: Sandro Hanea <me@sandro.rocks>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants