Skip to content

Commit fe62e0f

Browse files
guillaumerosepraveenkumar
authored andcommitted
Close logger after segment as segment also uses the log system
It avoids the error at the end of some commands: Failed to write to log, write xxx/crc.log: file already closed
1 parent c1cb7f7 commit fe62e0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/crc/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ func runPrerun() error {
7878
}
7979

8080
func runPostrun() {
81-
logging.CloseLogging()
8281
segmentClient.Close()
82+
logging.CloseLogging()
8383
}
8484

8585
func runRoot() {

0 commit comments

Comments
 (0)