Skip to content

Commit 85f96f9

Browse files
committed
refactor: adjust access log format
1 parent dde9738 commit 85f96f9

File tree

8 files changed

+207
-32
lines changed

8 files changed

+207
-32
lines changed

benches/bench.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,10 @@ fn bench_logger_format(c: &mut Criterion) {
276276
{when_unix} {size} {size_human} {status} {latency} \
277277
{payload_size} {latency_human} {payload_size} \
278278
{payload_size_human} {request_id} \
279-
{:upstream_reused} {:upstream_addr} {:processing} {:upstream_connect_time} \
280-
{:upstream_connected} {:upstream_processing_time} {:upstream_response_time} \
281-
{:location} {:established} {:tls_version} {:compression_time} \
282-
{:compression_ratio} {:cache_lookup_time} {:cache_lock_time} \
279+
{:upstream_reused} {:upstream_addr} {:processing} {:upstream_connect_time_human} \
280+
{:upstream_connected} {:upstream_processing_time_human} {:upstream_response_time_human} \
281+
{:location} {:established} {:tls_version} {:compression_time_human} \
282+
{:compression_ratio} {:cache_lookup_time_human} {:cache_lock_time_human} \
283283
{~deviceId} {>accept} {:reused}"
284284
.into();
285285
let ctx = Ctx {

pingap-certificate/src/validity_checker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async fn do_validity_check(count: u32) -> Result<bool, ServiceError> {
6363
category = LOG_CATEGORY,
6464
expired_date = info.not_after.to_string(),
6565
name,
66-
"certificate will expired",
66+
"certificate will be expired",
6767
);
6868
name_list.push(name.clone());
6969
continue;
@@ -86,7 +86,7 @@ async fn do_validity_check(count: u32) -> Result<bool, ServiceError> {
8686
level: NotificationLevel::Warn,
8787
category: "tls_validity".to_string(),
8888
message: format!(
89-
"certificate {} will expired",
89+
"certificate {} will be expired",
9090
name_list.join(",")
9191
),
9292
..Default::default()

0 commit comments

Comments
 (0)