From 9469d6352cdc83b4ba35f5b2b6f68cf625351b85 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 15 Nov 2022 15:49:36 +0100 Subject: [PATCH] document ULTRAGRID_VERBOSE + added some doxygen --- src/debug.cpp | 1 + src/host.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/debug.cpp b/src/debug.cpp index 5ea7c63a6..c0f5bbecf 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -241,6 +241,7 @@ bool parse_log_cfg(const char *conf_str, col() << "][+repeat][+/-timestamps]\n"; col() << TBOLD("\trepeat") << " - print repeating log messages\n"; col() << TBOLD("\ttimestamps") << " - enable/disable timestamps\n"; + col() << "environment variable " << SBOLD("ULTRAGRID_VERBOSE") << " - use verbose output (same as `-V` on command-line)\n"; return false; } diff --git a/src/host.cpp b/src/host.cpp index c73dad796..65240bc82 100644 --- a/src/host.cpp +++ b/src/host.cpp @@ -687,7 +687,10 @@ bool validate_param(const char *param) * false - set also remaining parameters including full check and "help" output * * @note - * This function will be usually called twice - first with preinit=true and then with false + * This function will be usually called twice - first with preinit=true and then with false. + * It is because the bufffering parameter need to be set early (prior to any output). On the + * other hand not all params can be set immediately -- modules are not yet registered, so it + * is called once more the preinit is done. */ bool parse_params(const char *optarg, bool preinit) {