Skip to content

Commit

Permalink
rename ProtobufAccessLog::error to 'message'
Browse files Browse the repository at this point in the history
  • Loading branch information
Keksoj committed Mar 11, 2024
1 parent 756b78b commit 8e81a02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion command/src/command.proto
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ message InitialState {
// An access log, meant to be passed to another agent
message ProtobufAccessLog {
// error message if any
optional string error = 1;
optional string message = 1;
// LogContext = request_id + cluster_id + backend_id
required Uint128 request_id = 2;
// id of the cluster (set of frontend, backend, routing rules)
Expand Down
2 changes: 1 addition & 1 deletion command/src/logging/access_logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl RequestRecord<'_> {
endpoint: ProtobufEndpoint {
inner: Some(endpoint),
},
error: self.message.duplicate(),
message: self.message.duplicate(),
protocol: self.protocol.duplicate(),
request_id,
response_time: self.response_time.whole_microseconds() as u64,
Expand Down

0 comments on commit 8e81a02

Please sign in to comment.