ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
Logging Rate Limits

Standard rate limits for log_*_every() macros. More...

Files

file  log_rates.h
 Logging rate limit constants (in microseconds).

Macros

#define LOG_RATE_VERY_FAST   (100000)
 Log rate limit: 0.1 seconds (100,000 microseconds) - for very high frequency operations.
#define LOG_RATE_FAST   (1000000)
 Log rate limit: 1 second (1,000,000 microseconds).
#define LOG_RATE_NORMAL   (3000000)
 Log rate limit: 3 seconds (3,000,000 microseconds).
#define LOG_RATE_DEFAULT   (5000000)
 Log rate limit: 5 seconds (5,000,000 microseconds) - default for audio/video packets.
#define LOG_RATE_SLOW   (10000000)
 Log rate limit: 10 seconds (10,000,000 microseconds).

Detailed Description

Standard rate limits for log_*_every() macros.

Standard rate limits for log_*_every() macros to reduce log spam in high-frequency code paths.

Usage: log_debug_every(LOG_RATE_VIDEO_FRAME, "message")

Macro Definition Documentation

◆ LOG_RATE_DEFAULT

#define LOG_RATE_DEFAULT   (5000000)

#include <include/ascii-chat/common/log_rates.h>

Log rate limit: 5 seconds (5,000,000 microseconds) - default for audio/video packets.

Definition at line 32 of file log_rates.h.

Referenced by create_mixed_ascii_frame_for_client(), handle_audio_batch_packet(), handle_audio_opus_batch_packet(), handle_audio_opus_packet(), and mixer_process_excluding_source().

◆ LOG_RATE_FAST

#define LOG_RATE_FAST   (1000000)

#include <include/ascii-chat/common/log_rates.h>

Log rate limit: 1 second (1,000,000 microseconds).

Definition at line 26 of file log_rates.h.

Referenced by audio_ring_buffer_write(), and send_packet_secure().

◆ LOG_RATE_NORMAL

#define LOG_RATE_NORMAL   (3000000)

#include <include/ascii-chat/common/log_rates.h>

Log rate limit: 3 seconds (3,000,000 microseconds).

Definition at line 29 of file log_rates.h.

◆ LOG_RATE_SLOW

#define LOG_RATE_SLOW   (10000000)

#include <include/ascii-chat/common/log_rates.h>

Log rate limit: 10 seconds (10,000,000 microseconds).

Definition at line 35 of file log_rates.h.

Referenced by client_audio_render_thread(), create_mixed_ascii_frame_for_client(), handle_audio_opus_batch_packet(), and threaded_send_packet().

◆ LOG_RATE_VERY_FAST

#define LOG_RATE_VERY_FAST   (100000)

#include <include/ascii-chat/common/log_rates.h>

Log rate limit: 0.1 seconds (100,000 microseconds) - for very high frequency operations.

Definition at line 23 of file log_rates.h.

Referenced by handle_audio_opus_packet(), opus_codec_decode(), and opus_codec_encode().