Do not create empty audit log file if desitnation is not to a file

Description

Problem statement (Why?)

The psmdb always creates a file if --auditPath is provided regardless if the --auditDestination is not a file:

The file is created during parsing the arguments regardless of the destination:

Solution (What?)

Do not create a file if --auditPath is provided but --auditDestination is not file.

Acceptance criteria

The solution meets all functional requirements, passes unit and integration tests, and does not introduce regressions in existing functionality.

Environment

None

Activity

Details

Assignee

Reporter

Labels

Needs QA

Yes

Story Points

Priority

Smart Checklist

Created March 12, 2025 at 4:11 PM
Updated last week