mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 03:42:19 +00:00
qemu: set swtpm log level parameter
This wires up the emulator 'debug' parameter to control the /usr/bin/swtpm 'level' parameter for logging. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
5c77ecd5f3
commit
e40a533118
@ -611,6 +611,10 @@ qemuTPMEmulatorBuildCommand(virDomainTPMDef *tpm,
|
||||
tpm->data.emulator.storagepath);
|
||||
|
||||
virCommandAddArg(cmd, "--log");
|
||||
if (tpm->data.emulator.debug != 0)
|
||||
virCommandAddArgFormat(cmd, "file=%s,level=%u", tpm->data.emulator.logfile,
|
||||
tpm->data.emulator.debug);
|
||||
else
|
||||
virCommandAddArgFormat(cmd, "file=%s", tpm->data.emulator.logfile);
|
||||
|
||||
virCommandAddArg(cmd, "--terminate");
|
||||
|
Loading…
x
Reference in New Issue
Block a user