mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +00:00
prevent sd logging when in quiet mode (+1 squashed commits)
Squashed commits: [a4a1cdd5] fixed type conversion
This commit is contained in:
parent
4682918965
commit
ca19199bc8
4 changed files with 13 additions and 3 deletions
|
@ -211,6 +211,10 @@ void pretty_progress(int step, int steps, float time) {
|
|||
if (step == 0) {
|
||||
return;
|
||||
}
|
||||
if(!do_log)
|
||||
{
|
||||
return;
|
||||
}
|
||||
std::string progress = " |";
|
||||
int max_progress = 50;
|
||||
int32_t current = (int32_t)(step * 1.f * max_progress / steps);
|
||||
|
@ -271,6 +275,10 @@ void set_log_message(bool log)
|
|||
{
|
||||
do_log = log;
|
||||
}
|
||||
bool get_log_message()
|
||||
{
|
||||
return do_log;
|
||||
}
|
||||
|
||||
void log_printf(sd_log_level_t level, const char* file, int line, const char* format, ...) {
|
||||
va_list args;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue