DE-3247 | updated logging for failing requests
This commit is contained in:
@@ -66,7 +66,10 @@ func (wp *WorkerPool) processRequest(request RequestObject) {
|
||||
|
||||
var result map[string]interface{}
|
||||
if err := json.Unmarshal(messageBytes, &result); err != nil {
|
||||
wp.logger.Error("Failed to unmarshal JSON", zap.Error(err))
|
||||
wp.logger.Error("Failed to unmarshal JSON",
|
||||
zap.Error(err),
|
||||
zap.String("messageBytes", string(messageBytes)),
|
||||
zap.Int("bytesLength", len(messageBytes)))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user