Use int debug level

This commit is contained in:
Sergey Lyubka committed 2022-08-01 11:19:32 +01:00
1 parent 581a0698af
commit a468f58128
42 files changed
+89 -114

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *, size_t);
#endif
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
mg_log_set("0");
mg_log_set(MG_LL_NONE);
struct mg_dns_message dm;
mg_dns_parse(data, size, &dm);
+1 -1
View File
@@ -2483,7 +2483,7 @@ static void test_rpc(void) {
int main(void) {
const char *debug_level = getenv("V");
if (debug_level == NULL) debug_level = "3";
mg_log_set(debug_level);
mg_log_set(atoi(debug_level));
test_json();
test_rpc();