Author: mattm Date: 2017-08-10 11:19:16 +0200 (Thu, 10 Aug 2017) New Revision: 29334
Modified: trunk/gvm/ChangeLog trunk/gvm/src/gmpd.c trunk/gvm/src/gvmd.c Log: * src/gmpd.c (serve_gmp): Remove update log, now done in otp.c but only if an update is going to happen. * src/gvmd.c (update_or_rebuild_nvt_cache): Remove excess info logging that happens during the scheduler checks. Modified: trunk/gvm/ChangeLog =================================================================== --- trunk/gvm/ChangeLog 2017-08-10 09:12:48 UTC (rev 29333) +++ trunk/gvm/ChangeLog 2017-08-10 09:19:16 UTC (rev 29334) @@ -1,5 +1,13 @@ 2017-08-10 Matthew Mundell <matthew.mund...@greenbone.net> + * src/gmpd.c (serve_gmp): Remove update log, now done in otp.c but only if + an update is going to happen. + + * src/gvmd.c (update_or_rebuild_nvt_cache): Remove excess info logging + that happens during the scheduler checks. + +2017-08-10 Matthew Mundell <matthew.mund...@greenbone.net> + Automatically update the NVTs in the db when the feed on disk updates. * src/gmpd.c (serve_gmp): Handle process_otp_scanner_input return when Modified: trunk/gvm/src/gmpd.c =================================================================== --- trunk/gvm/src/gmpd.c 2017-08-10 09:12:48 UTC (rev 29333) +++ trunk/gvm/src/gmpd.c 2017-08-10 09:19:16 UTC (rev 29334) @@ -480,9 +480,7 @@ if (client_connection->socket < 0) gmpd_nvt_cache_mode = client_connection->socket; - if (gmpd_nvt_cache_mode) - g_info (" Updating NVT cache.\n"); - else + if (gmpd_nvt_cache_mode == 0) g_debug (" Serving GMP.\n"); /* Initialise the XML parser and the manage library. */ Modified: trunk/gvm/src/gvmd.c =================================================================== --- trunk/gvm/src/gvmd.c 2017-08-10 09:12:48 UTC (rev 29333) +++ trunk/gvm/src/gvmd.c 2017-08-10 09:19:16 UTC (rev 29334) @@ -990,15 +990,9 @@ /* Initialise GMP daemon. */ if (update_nvt_cache == 0) - { - proctitle_set ("gvmd: Rebuilding NVT cache"); - g_info ("%s: Rebuilding NVT cache...\n", __FUNCTION__); - } + proctitle_set ("gvmd: Rebuilding NVT cache"); else - { - proctitle_set ("gvmd: Updating NVT cache"); - g_info ("%s: Updating NVT cache...\n", __FUNCTION__); - } + proctitle_set ("gvmd: Updating NVT cache"); switch (init_gmpd (log_config, update_nvt_cache ? -1 : -2, @@ -1087,7 +1081,6 @@ void (*progress) (), int skip_create_tables) { proctitle_set ("gvmd: Reloading"); - g_info ("%s: Reloading NVT cache\n", __FUNCTION__); /* Don't ignore SIGCHLD, in order to wait for child process. */ setup_signal_handler (SIGCHLD, SIG_DFL, 0); @@ -1173,8 +1166,6 @@ /* Update the cache. */ - g_info (" internal NVT cache update\n"); - rebuild_nvt_cache_retry (1, 0, NULL, 1); /* Exit. */ _______________________________________________ Openvas-commits mailing list Openvas-commits@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-commits