parent
40a6eec4e1
commit
8505268edf
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ func (s *submitServer) saveReport(ctx context.Context, p payload) (*submitRespon
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, log := range p.Logs {
|
for i, log := range p.Logs {
|
||||||
if err := gzipAndSave([]byte(log.Lines), prefix, fmt.Sprintf("logs-%d.log.gz", i)); err != nil {
|
if err := gzipAndSave([]byte(log.Lines), prefix, fmt.Sprintf("logs-%04d.log.gz", i)); err != nil {
|
||||||
return nil, err // TODO: Rollback?
|
return nil, err // TODO: Rollback?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue