#community-help

Turning Off Typesense Server Logs

TLDR Manish inquired about turning off verbose Typesense server logs. Jason explained that the logs cannot be turned off due to their usefulness in debugging issues. There is no way to limit logs to warning level or above currently.

Powered by Struct AI
6
4mo
Solved
Join the chat
May 25, 2023 (4 months ago)
Manish
Photo of md5-f0a83cd20895941fd74c026f9f15b61f
Manish
08:22 PM
I'm seeing a lot of logs being output by Typesense server, which look like this:

> I20230525 20:20:00.660845 262 raft_server.cpp:546] Term: 126, last_index index: 756, committed_index: 756, known_applied_index: 756, applying_index: 0, queued_writes: 0, pending_queue_size: 0, local_sequence: 1912
> I20230525 20:20:00.660920 288 raft_server.h:60] Peer refresh succeeded!
Is there a way to turn these off?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:23 PM
There’s no way to turn this off… We’ve left it verbose because we’ve found it to be super helpful to debug issues the first time they happen instead of trying to reproduce them retroactively.

More context here: https://github.com/typesense/typesense/issues/475#issuecomment-1301621061
Manish
Photo of md5-f0a83cd20895941fd74c026f9f15b61f
Manish
08:26 PM
Got it. Makes sense.
08:26
Manish
08:26 PM
But, is there a way to tell Typesense to only output warning level logs and above?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:27 PM
Not at the moment…
Manish
Photo of md5-f0a83cd20895941fd74c026f9f15b61f
Manish
08:28 PM
alright. no worries.