Skip to content

Commit

Permalink
observability: implement json-logging to stdout for aptos-logger (apt…
Browse files Browse the repository at this point in the history
  • Loading branch information
geekflyer authored Jul 25, 2022
1 parent 1d100ab commit fd60a8b
Show file tree
Hide file tree
Showing 11 changed files with 186 additions and 69 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ repos:
- id: end-of-file-fixer
files: \.(rs|move)$
- id: check-added-large-files
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.0
hooks:
Expand Down
65 changes: 65 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion consensus/src/experimental/linkedlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
// modified from https://rust-unofficial.github.io/too-many-lists/fourth-final.html (MIT License)

// maybe later we can move this to /common
use aptos_infallible::{Mutex, MutexGuard};
use std::{
cell::{Ref, RefCell, RefMut},
rc::Rc,
};
use aptos_infallible::{Mutex, MutexGuard};

pub struct List<T> {
pub head: Link<T>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use aptos_crypto::{
test_utils::KeyPair,
traits::*,
};
use aptos_crypto_derive::{CryptoHasher, BCSCryptoHash};
use aptos_crypto_derive::{BCSCryptoHash, CryptoHasher};
use rand::{prelude::ThreadRng, thread_rng};
use serde::{Deserialize, Serialize};

Expand Down
5 changes: 5 additions & 0 deletions crates/aptos-logger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ once_cell = "1.10.0"
prometheus = { version = "0.13.0", default-features = false }
serde = { version = "1.0.137", features = ["derive"] }
serde_json = "1.0.81"
strum = "0.24.1"
strum_macros = "0.24.2"
tracing = "0.1.34"
tracing-subscriber = "0.3.11"

aptos-infallible = { path = "../aptos-infallible" }
aptos-log-derive = { path = "../aptos-log-derive" }

[dev-dependencies]
pretty_assertions = "1.2.1"
Loading

0 comments on commit fd60a8b

Please sign in to comment.