There's two ways to affect the commandline in CommandLine.cpp:
FILTER_COMMANDLINE_LOGGING - for filtering certain or all args (if left empty) from the log.
UE_COMMAND_LINE_USES_ALLOW_LIST - for only allowing certain commandline parameters.
To use the log filtering it is necessary to enable UE_COMMAND_LINE_USES_ALLOW_LIST.
This does enable log filtering with an empty allow list and prevents the use-case where a user might want to filter the log commandline but does not want to specify an allow list.
Both features should be separated and able to be used independently from each other.
UE_COMMAND_LINE_USES_ALLOW_LISTBuild a project with:
GlobalDefinitions.Add("FILTER_COMMANDLINE_LOGGING=\"\"");
Expected result:
Log commandline will be filtered, allowlist unused.
Actual result:
Log commandline will not be applied, since the log filtering code is wrapped in UE_COMMAND_LINE_USES_ALLOW_LIST.
Also enabling UE_COMMAND_LINE_USES_ALLOW_LIST does filter the log but also enables an empty allow list, thus removing all parameters from the commandline.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-220505 in the post.
0 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 5.4.3 |
Target Fix | 5.6 |
Created | Jul 30, 2024 |
---|---|
Updated | Oct 18, 2024 |