Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
fc.go: Set fc log level to debug if hypervisor.enable_debug is true
Browse files Browse the repository at this point in the history
Set firecracker log level to debug if hypervisor.enable_debug is true.

Fixes: #2260

Signed-off-by: Hui Zhu <teawater@antfin.com>
  • Loading branch information
teawater committed Nov 25, 2019
1 parent 562d9fd commit 191ee63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virtcontainers/fc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 191ee63

Please sign in to comment.