mirror of https://github.com/yandex/odyssey.git
Remove useless logging of startup errors
This commit is contained in:
parent
9adc6493f6
commit
303dc0af3b
|
@ -111,6 +111,8 @@ od_cron_stat(od_cron_t *cron)
|
||||||
uint64_t msg_cache_count = 0;
|
uint64_t msg_cache_count = 0;
|
||||||
uint64_t msg_cache_gc_count = 0;
|
uint64_t msg_cache_gc_count = 0;
|
||||||
uint64_t msg_cache_size = 0;
|
uint64_t msg_cache_size = 0;
|
||||||
|
od_atomic_u64_t startup_errors = od_atomic_u64_of(&cron->startup_errors);
|
||||||
|
cron->startup_errors = 0;
|
||||||
machine_stat(&count_coroutine,
|
machine_stat(&count_coroutine,
|
||||||
&count_coroutine_cache,
|
&count_coroutine_cache,
|
||||||
&msg_allocated,
|
&msg_allocated,
|
||||||
|
@ -119,13 +121,14 @@ od_cron_stat(od_cron_t *cron)
|
||||||
&msg_cache_size);
|
&msg_cache_size);
|
||||||
od_log(&instance->logger, "stats", NULL, NULL,
|
od_log(&instance->logger, "stats", NULL, NULL,
|
||||||
"system worker: msg (%" PRIu64 " allocated, %" PRIu64 " cached, %" PRIu64 " freed, %" PRIu64 " cache_size), "
|
"system worker: msg (%" PRIu64 " allocated, %" PRIu64 " cached, %" PRIu64 " freed, %" PRIu64 " cache_size), "
|
||||||
"coroutines (%" PRIu64 " active, %"PRIu64 " cached)",
|
"coroutines (%" PRIu64 " active, %"PRIu64 " cached) startup errors %" PRIu64,
|
||||||
msg_allocated,
|
msg_allocated,
|
||||||
msg_cache_count,
|
msg_cache_count,
|
||||||
msg_cache_gc_count,
|
msg_cache_gc_count,
|
||||||
msg_cache_size,
|
msg_cache_size,
|
||||||
count_coroutine,
|
count_coroutine,
|
||||||
count_coroutine_cache);
|
count_coroutine_cache,
|
||||||
|
startup_errors);
|
||||||
|
|
||||||
/* request stats per worker */
|
/* request stats per worker */
|
||||||
int i;
|
int i;
|
||||||
|
@ -216,6 +219,7 @@ od_cron_init(od_cron_t *cron)
|
||||||
{
|
{
|
||||||
cron->stat_time_us = 0;
|
cron->stat_time_us = 0;
|
||||||
cron->global = NULL;
|
cron->global = NULL;
|
||||||
|
cron->startup_errors = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -13,6 +13,7 @@ struct od_cron
|
||||||
{
|
{
|
||||||
uint64_t stat_time_us;
|
uint64_t stat_time_us;
|
||||||
od_global_t *global;
|
od_global_t *global;
|
||||||
|
od_atomic_u64_t startup_errors;
|
||||||
};
|
};
|
||||||
|
|
||||||
void od_cron_init(od_cron_t*);
|
void od_cron_init(od_cron_t*);
|
||||||
|
|
|
@ -163,8 +163,10 @@ od_frontend_startup(od_client_t *client)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
od_error(&instance->logger, "startup", client, NULL,
|
od_debug(&instance->logger, "startup", client, NULL,
|
||||||
"startup packet read error");
|
"startup packet read error");
|
||||||
|
od_cron_t *cron = client->global->cron;
|
||||||
|
od_atomic_u64_inc(&cron->startup_errors);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue