From: Arran Cudbard-Bell Date: Wed, 31 Mar 2021 21:55:46 +0000 (+0100) Subject: Remove debugging statements X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38aeeade19255e94319f5be0d65652b237c88bb1;p=thirdparty%2Ffreeradius-server.git Remove debugging statements --- diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index ced34b4bbd1..ee98f9ddc99 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -3097,40 +3097,29 @@ int main(int argc, char *argv[]) fr_openssl_init(); #endif - FR_FAULT_LOG("Before dl_module_load_init"); - fr_dict_global_ctx_debug(); dl_modules = dl_module_loader_init(NULL); if (!dl_modules) { fr_perror("unit_test_attribute"); EXIT_WITH_FAILURE; } - FR_FAULT_LOG("After dl_module_loader_init"); - fr_dict_global_ctx_debug(); dl_loader = dl_loader_init(autofree, NULL, false, false); if (!dl_loader) { fr_perror("unit_test_attribute"); EXIT_WITH_FAILURE; } - FR_FAULT_LOG("After dl_loader_init"); - fr_dict_global_ctx_debug(); config.dict_gctx = fr_dict_global_ctx_init(autofree, config.dict_dir); if (!config.dict_gctx) { fr_perror("unit_test_attribute"); EXIT_WITH_FAILURE; } - FR_FAULT_LOG("After fr_dict_global_ctx_init"); - fr_dict_global_ctx_debug(); if (fr_dict_internal_afrom_file(&config.dict, FR_DICTIONARY_INTERNAL_DIR) < 0) { fr_perror("unit_test_attribute"); EXIT_WITH_FAILURE; } - FR_FAULT_LOG("After fr_dict_internal_afrom_file"); - fr_dict_global_ctx_debug(); - /* * Load the custom dictionary */ @@ -3139,9 +3128,6 @@ int main(int argc, char *argv[]) EXIT_WITH_FAILURE; } - FR_FAULT_LOG("fr_dict_read"); - fr_dict_global_ctx_debug(); - /* * Initialise the interpreter, registering operations. * Needed because some keywords also register xlats. @@ -3151,9 +3137,6 @@ int main(int argc, char *argv[]) EXIT_WITH_FAILURE; } - FR_FAULT_LOG("After unlang_init_global and before requests"); - fr_dict_global_ctx_debug(); - if (!xlat_register(NULL, "test", xlat_test, false)) { ERROR("Failed registering xlat"); EXIT_WITH_FAILURE; @@ -3223,9 +3206,6 @@ int main(int argc, char *argv[]) } } - FR_FAULT_LOG("After running tests"); - fr_dict_global_ctx_debug(); - /* * Try really hard to free any allocated * memory, so we get clean talloc reports. @@ -3243,14 +3223,9 @@ cleanup: fr_perror("unit_test_attribute - dl_loader - "); /* Print free order issues */ } fr_dict_free(&config.dict); - FR_FAULT_LOG("After freeing config.dict"); - fr_dict_global_ctx_debug(); unlang_free_global(); - FR_FAULT_LOG("After unlang_free"); - fr_dict_global_ctx_debug(); - /* * Dictionaries get freed towards the end * because it breaks "autofree".