]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
We only get "waking up" messages at DEBUG4
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 5 Nov 2019 20:55:29 +0000 (14:55 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 5 Nov 2019 20:55:29 +0000 (14:55 -0600)
src/bin/radiusd.c
src/lib/server/main_loop.c

index 525951125ad0fd687dfe0e95fc6157982ae535d5..51b30857e32a74665e126360c49704ccbd27de39 100644 (file)
@@ -185,7 +185,6 @@ int main(int argc, char *argv[])
        void            *pool_page_start = NULL, *pool_page_end = NULL;
        bool            do_mprotect;
        dl_module_loader_t *dl_modules = NULL;
-       bool            sync_time = true;
 
        /*
         *      Setup talloc callbacks so we get useful errors
@@ -384,7 +383,6 @@ int main(int argc, char *argv[])
                        break;
 
                case 'X':
-                       sync_time = false;
                        config->spawn_workers = false;
                        config->daemonize = false;
                        fr_debug_lvl += 2;
@@ -865,14 +863,7 @@ int main(int argc, char *argv[])
                DEBUG("Global memory protected");
        }
 
-       /*
-        *      Sync timers normally, but not when running with
-        *      `radiusd -X`. For debug mode, we don't really care if
-        *      the times are off a little bit.  And skipping this
-        *      timer means that we don't pollute the debug output
-        *      with lots of "waking up in 1s".
-        */
-       if (sync_time) fr_time_sync_event(main_loop_event_list(), fr_time(), NULL);
+       fr_time_sync_event(main_loop_event_list(), fr_time(), NULL);
 
        /*
         *      Prevent anything from modifying the dictionaries
index 2e4a0ea0e0372364ccef05616f0c632a06c7d697..e23f7cc308d68551edf2dbfa57be066487a307cb 100644 (file)
@@ -236,7 +236,7 @@ static int _loop_status(UNUSED void *ctx, fr_time_t wake)
                INFO("Ready to process requests");
 
        } else if (wake > (NSEC / 10)) {
-               DEBUG4("Waking up in %pV seconds.", fr_box_time_delta(wake));
+               DEBUG4("Waking up in %pV seconds", fr_box_time_delta(wake));
        }
 
        return 0;