Skip to content

Commit

Permalink
logger: suppress server message if kernel is in quiet mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Sep 10, 2024
1 parent ac26d27 commit 6e5c06f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ int kprintf(int level, const char *src, const char *f, ...) {
}

int ksprint(int level, const char *name, const char *msg) {
if(!verbose) return 0;
if(!verbose && (level != KPRINTF_LEVEL_ERROR) && (level != KPRINTF_LEVEL_PANIC))
return 0;

acquireLockBlocking(&lock);
int len = printf("\e[37m%08d ", platformUptime());
Expand Down

0 comments on commit 6e5c06f

Please sign in to comment.