]> git.proxmox.com Git - qemu-server.git/commit
swtpm: enable logging
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 18 Jan 2023 12:21:08 +0000 (13:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Feb 2023 11:53:25 +0000 (12:53 +0100)
commitb2e9c4d322f87b02d0c5409d07c02e09eead063e
tree3db3dad04261ce04e5374439894404bedb226bd9
parentcb64a64339899cb1f112581361e145407babf57e
swtpm: enable logging

AFAICT, previously, errors from swtpm would not show up in any logs,
because they were just printed to the stderr of the daemonized
invocation here.

The 'truncate' option is not used, so that the log is not immediately
lost when a new instance is started. This increases the chance that
the relevant errors are still present when requesting the log from a
user.

Log level 1 contains the most relevant errors and seems to be quiet
for working-as-expected invocations. Log level 2 already includes
logging full TPM commands, some of which are 1024 bytes long. Thus,
log level 1 was chosen.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm