Skip to content

Commit

Permalink
Remove unnecessary print statement in schema apis
Browse files Browse the repository at this point in the history
  • Loading branch information
vjsamuel committed May 22, 2017
1 parent 2c96a9c commit 0d63a8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ https://github.com/elastic/beats/compare/v6.0.0-alpha1...master[Check the HEAD d
- Fix panic when events were dropped by filters. {issue}4327[4327]
- Add filtering to system filesystem metricset to remove relative mountpoints like those
from Linux network namespaces. {pull}4370[4370]
- Remove unnecessary print statement in schema apis {pull}4355[4355]

*Packetbeat*

Expand Down
3 changes: 1 addition & 2 deletions metricbeat/schema/mapstriface/mapstriface.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ func StrFromNum(key string, opts ...schema.SchemaOption) schema.Conv {
func toStr(key string, data map[string]interface{}) (interface{}, error) {
emptyIface, err := common.MapStr(data).GetValue(key)
if err != nil {
fmt.Println(err)
return "", fmt.Errorf("Key %s not found", key)
return "", fmt.Errorf("Key %s not found: %s", key, err.Error())
}
str, ok := emptyIface.(string)
if !ok {
Expand Down

0 comments on commit 0d63a8c

Please sign in to comment.