feat: LOG_TENANT_LOADING

master
Sean McBride 3 years ago
parent bdfbff9adb
commit 89b1c07146

@ -60,6 +60,7 @@ BINARY_NAME=sledgert
# CFLAGS += -DLOG_CONTEXT_SWITCHES
# CFLAGS += -DLOG_HTTP_PARSER
# CFLAGS += -DLOG_LOCK_OVERHEAD
# CFLAGS += -DLOG_TENANT_LOADING
# CFLAGS += -DLOG_PREEMPTION
# CFLAGS += -DLOG_SANDBOX_ALLOCATION
# CFLAGS += -DLOG_UNSUPPORTED_WASI

@ -84,6 +84,10 @@ tenant_config_parse(struct tenant_config *config, const char *json_buf, jsmntok_
if (tenant_config_validate(config, did_set) < 0) return -1;
#ifdef LOG_TENANT_LOADING
tenant_config_print(config);
#endif
return i;
}
@ -113,6 +117,9 @@ tenant_config_vec_parse(struct tenant_config **tenant_config_vec, int *tenant_co
return -1;
}
#ifdef LOG_TENANT_LOADING
fprintf(stderr, "Tenants Size: %d\n", *tenant_config_vec_len);
#endif
for (int tenant_idx = 0; tenant_idx < *tenant_config_vec_len; tenant_idx++) {
i++;

Loading…
Cancel
Save