>On 7/27/26 09:52, 'Ulrich Teichert' via swupdate wrote:
>> Hi,
>>
>> I have a requirement to log the version information during startup on
>> swupdate, as well
>SWUpdate's version or versions of the artifacts ?
The artifact versions - both the installed and the to-be-installed.
The statements in question are (line numbers from current HEAD of master):
in core/artifacts_versions.c, line 70-73:
TRACE("Installed %s: Version %s",
swcomp->name,
swcomp->version);
which is logging the versions read from sw_versions, and in parser/parser.c, line 185:
TRACE("Version %s", swcfg->version);
which is logging the versions contained in the freshly parsed SWU container.
>But if they are becoming a lot, such as a patch with
>CONFIG_REPORT_VERSIONS is also ok.
No, only two of them and logging these with level INFO would be appropiate,
I think. But I have the feeling that logging with INFO would still produce too
much output for my use case/requirements/users...
I wonder what log level settings others are using in a production setup? Currently,
we are using WARN, which was fine until this requirement came along...
CU,
Uli
>> No, only two of them and logging these with level INFO would be appropiate,
>> I think.
>It is ok for me to switch them to INFO.
Right, I've sent a separate patch to change the logging level of these two statements,
CU,
Uli