go.mod: runc v1.0.0
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
		 Akihiro Suda
					Akihiro Suda
				
			
				
					committed by
					
						 Davanum Srinivas
						Davanum Srinivas
					
				
			
			
				
	
			
			
			 Davanum Srinivas
						Davanum Srinivas
					
				
			
						parent
						
							28bb59c080
						
					
				
				
					commit
					f913a42755
				
			
							
								
								
									
										5
									
								
								vendor/github.com/sirupsen/logrus/json_formatter.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								vendor/github.com/sirupsen/logrus/json_formatter.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -23,6 +23,9 @@ func (f FieldMap) resolve(key fieldKey) string { | ||||
| // JSONFormatter formats logs into parsable json | ||||
| type JSONFormatter struct { | ||||
| 	// TimestampFormat sets the format used for marshaling timestamps. | ||||
| 	// The format to use is the same than for time.Format or time.Parse from the standard | ||||
| 	// library. | ||||
| 	// The standard Library already provides a set of predefined format. | ||||
| 	TimestampFormat string | ||||
|  | ||||
| 	// DisableTimestamp allows disabling automatic timestamps in output | ||||
| @@ -118,7 +121,7 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) { | ||||
| 		encoder.SetIndent("", "  ") | ||||
| 	} | ||||
| 	if err := encoder.Encode(data); err != nil { | ||||
| 		return nil, fmt.Errorf("failed to marshal fields to JSON, %v", err) | ||||
| 		return nil, fmt.Errorf("failed to marshal fields to JSON, %w", err) | ||||
| 	} | ||||
|  | ||||
| 	return b.Bytes(), nil | ||||
|   | ||||
		Reference in New Issue
	
	Block a user