Merge branch 'bugfix-17492-merge' into 'main'
🐞 fix: See merge request linxin/coredump-tools!8
This commit is contained in:
@@ -189,14 +189,7 @@ func writeCoreDumpToFile(config types.Coredump_config, pipe_config types.Pipecon
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if !flag {
|
if !flag {
|
||||||
journal.Print(journal.PriErr, "Disk space exceeds limit after write coredump!")
|
return errors.New("Disk space exceeds limit when writing coredump!")
|
||||||
err := os.RemoveAll(pipe_config.Storage)
|
|
||||||
if err != nil {
|
|
||||||
journal.Print(journal.PriErr, err.Error())
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
journal.Print(journal.PriInfo, err.Error())
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
nums = 0
|
nums = 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user