-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug_backtraceAt #4232
debug_backtraceAt #4232
Conversation
Codecov Report
... and 40 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty,
I'd like to keep it unimplemented atm
crates/rpc/rpc-api/src/debug.rs
Outdated
@@ -123,4 +123,10 @@ pub trait DebugApi { | |||
opts: Option<GethDebugTracingOptions>, | |||
state_override: Option<StateOverride>, | |||
) -> RpcResult<Vec<GethTrace>>; | |||
|
|||
///Sets the logging backtrace location. When a backtrace location is set and a log message is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
///Sets the logging backtrace location. When a backtrace location is set and a log message is | |
/// Sets the logging backtrace location. When a backtrace location is set and a log message is |
crates/rpc/rpc/src/debug.rs
Outdated
use lazy_static::lazy_static; | ||
use std::sync::Mutex; | ||
lazy_static! { | ||
static ref LOCATION: Mutex<String> = Mutex::new(String::new()); | ||
static ref BACKTRACE_ENABLED: Mutex<bool> = Mutex::new(false); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to support this atm
so this function should just return unimplemented
crates/rpc/rpc/src/debug.rs
Outdated
let mut parts: Vec<&str> = location.split(':').collect(); | ||
if parts.len() != 2 { | ||
return Err(internal_rpc_err("Invalid location format".to_string())) | ||
} | ||
parts[0] = parts[0].trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
So I will leave the rest of the functions unimplemented for now. We can then implement them one by one as you plan it |
@@ -25,6 +25,7 @@ reth-tasks.workspace = true | |||
reth-metrics.workspace = true | |||
reth-consensus-common = { path = "../../consensus/common" } | |||
reth-rpc-types-compat.workspace = true | |||
lazy_static = "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Ref #1701
https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-debug
https://github.com/ethereum/go-ethereum/blob/386cba15b5ee56908e3b33f7ee52a4c8486d5d8f/log/handler_glog.go#L151
https://github.com/ethereum/go-ethereum/blob/386cba15b5ee56908e3b33f7ee52a4c8486d5d8f/internal/debug/api.go#L70