diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-07-31 18:13:59 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-07-31 18:13:59 +0200 |
commit | 07672f492ef085a9143ce3535700c0d4e83173de (patch) | |
tree | b1b2d9385548a3c99339a1690052c7e30deb140e /src/main.c | |
parent | 9f39404c86ea20d164b08b9639ca800c1d88724b (diff) |
main: show load profiling in test mode, too
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c index 40d03ca792..32ccf0bd5c 100644 --- a/src/main.c +++ b/src/main.c @@ -1306,6 +1306,11 @@ int main(int argc, char *argv[]) { goto finish; } + after_startup = now(CLOCK_MONOTONIC); + log_full(arg_action == ACTION_TEST ? LOG_INFO : LOG_DEBUG, + "Loaded units and determined initial transaction in %s.", + format_timespan(timespan, sizeof(timespan), after_startup - before_startup)); + if (arg_action == ACTION_TEST) { printf("-> By jobs:\n"); manager_dump_jobs(m, stdout, "\t"); @@ -1314,10 +1319,6 @@ int main(int argc, char *argv[]) { } } - after_startup = now(CLOCK_MONOTONIC); - log_debug("Loaded units and determined initial transaction in %s.", - format_timespan(timespan, sizeof(timespan), after_startup - before_startup)); - for (;;) { if ((r = manager_loop(m)) < 0) { log_error("Failed to run mainloop: %s", strerror(-r)); |