Skip to content

Commit d69462e

Browse files
committed
[container] pretty print sidecar data
1 parent 0358536 commit d69462e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## development
22

33
### Changed
4+
- pretty print sidecars
45
- dump modifications
56
- (mongo) chunk large operations
67
- (mssql) - fix trailing GO statements leaking into another batch

‎src/internal/retention/sidecar.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func TimestampString() string {
189189
}
190190

191191
func WriteSidecar(st storage.Storage, filename string, sc *Sidecar) error {
192-
data, err := json.Marshal(sc)
192+
data, err := json.MarshalIndent(sc, "", " ")
193193
if err != nil {
194194
return fmt.Errorf("marshal sidecar: %w", err)
195195
}

0 commit comments

Comments
 (0)