Skip to content

Commit

Permalink
add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Simpson committed Mar 16, 2022
1 parent 9a574f3 commit 0f296a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/coreinternal/attraction/type_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func convertValue(logger *zap.Logger, key string, to string, v pdata.AttributeVa
} else {
logger.Debug("String could not be converted to int", zap.String("key", key), zap.String("value", s), zap.Error(err))
}
default: // leave original value
default:
logger.Debug("Unable to convert type", zap.String("key", key), zap.String("from", v.Type().String()), zap.String("to", intConversionTarget))
}
case doubleConversionTarget:
switch v.Type() {
Expand All @@ -75,7 +76,8 @@ func convertValue(logger *zap.Logger, key string, to string, v pdata.AttributeVa
} else {
logger.Debug("String could not be converted to double", zap.String("key", key), zap.String("value", s), zap.Error(err))
}
default: // leave original value
default:
logger.Debug("Unable to convert type", zap.String("key", key), zap.String("from", v.Type().String()), zap.String("to", doubleConversionTarget))
}
default: // No-op
}
Expand Down

0 comments on commit 0f296a1

Please sign in to comment.