Skip to content

Commit

Permalink
Remove printf-debugging from metadata-transformer, oops
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianLyng committed Sep 25, 2023
1 parent da17155 commit 1a3cc0b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions transformer/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,13 @@ func (meta *Metadata) Transform(c *skogul.Container) error {
}
}
for _, rename := range meta.Rename {
fmt.Printf("hei\n")
if c.Metrics[mi].Metadata == nil {
continue
}
fmt.Printf("hei2\n")
if _, ok := c.Metrics[mi].Metadata[rename.Source]; !ok {
fmt.Printf("src: %v\n", c.Metrics[mi].Metadata)
continue
}
fmt.Printf("hei3\n")
c.Metrics[mi].Metadata[rename.Destination] = c.Metrics[mi].Metadata[rename.Source]
if !rename.Keep {
delete(c.Metrics[mi].Metadata, rename.Source)
Expand Down

0 comments on commit 1a3cc0b

Please sign in to comment.