Description

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.

 

Steps to Reproduce

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.

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-220505 in the post.

0
Login to Vote

Unresolved
ComponentUE - Foundation - Core
Affects Versions5.4.3
Target Fix5.5
CreatedJul 30, 2024
UpdatedAug 8, 2024
View Jira Issue