fc.go: Set fc log level to debug if hypervisor.enable_debug is true

Set firecracker log level to debug if hypervisor.enable_debug is true.

Fixes: #2260

Signed-off-by: Hui Zhu <teawater@antfin.com>
This commit is contained in:
Hui Zhu 2019-11-25 16:28:51 +08:00
parent 562d9fd5c2
commit 191ee63750

View File

@ -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)