Write logs to oom report

This commit is contained in:
世界
2026-06-28 11:10:20 +08:00
parent 54b4be5701
commit d2215bb7f7
5 changed files with 51 additions and 15 deletions
+6
View File
@@ -1487,6 +1487,12 @@ func (s *StartedService) WriteMessage(level log.Level, message string) {
}
}
func (s *StartedService) SavedLog() []*log.Entry {
s.logAccess.RLock()
defer s.logAccess.RUnlock()
return s.logLines.Array()
}
func (s *StartedService) Instance() *Instance {
s.serviceAccess.RLock()
defer s.serviceAccess.RUnlock()