Skip to content

Commit

Permalink
Add query to read error log
Browse files Browse the repository at this point in the history
Signed-off-by: Prithvi Raj <[email protected]>
  • Loading branch information
vprithvi committed Dec 13, 2018
1 parent 2df4cd0 commit 7d82b97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/storage/cassandra/spanstore/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ func (s *SpanReader) executeQuery(span opentracing.Span, query cassandra.Query,
tableMetrics.Emit(err, time.Since(start))
if err != nil {
logErrorToSpan(span, err)
s.logger.Error("Failed to exec query", zap.Error(err))
span.LogFields(otlog.String("query", query.String()))
s.logger.Error("Failed to exec query", zap.Error(err), zap.String("query", query.String()))
return nil, err
}
return retMe, nil
Expand Down

0 comments on commit 7d82b97

Please sign in to comment.