mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 23:38:31 +00:00
Merge pull request #2261 from teawater/fc_log_debug
fc.go: Set firecracker log level to debug if hypervisor.enable_debug …
This commit is contained in:
commit
dd15db3250
@ -622,6 +622,9 @@ func (fc *firecracker) fcSetLogger() error {
|
||||
defer span.Finish()
|
||||
|
||||
fcLogLevel := "Error"
|
||||
if fc.config.Debug {
|
||||
fcLogLevel = "Debug"
|
||||
}
|
||||
|
||||
// listen to log fifo file and transfer error info
|
||||
jailedLogFifo, err := fc.fcListenToFifo(fcLogFifo)
|
||||
|
Loading…
Reference in New Issue
Block a user