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:
Julio Montes 2019-11-25 10:32:26 -06:00 committed by GitHub
commit dd15db3250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -622,6 +622,9 @@ func (fc *firecracker) fcSetLogger() error {
defer span.Finish() defer span.Finish()
fcLogLevel := "Error" fcLogLevel := "Error"
if fc.config.Debug {
fcLogLevel = "Debug"
}
// listen to log fifo file and transfer error info // listen to log fifo file and transfer error info
jailedLogFifo, err := fc.fcListenToFifo(fcLogFifo) jailedLogFifo, err := fc.fcListenToFifo(fcLogFifo)