* Route all loader messages to log collector (#10528)
(cherry picked from commit b6a9573748
)
# Conflicts:
# Cargo.lock
# programs/bpf/Cargo.lock
# programs/bpf/benches/bpf_loader.rs
# programs/bpf_loader/Cargo.toml
# programs/bpf_loader/src/syscalls.rs
# runtime/src/message_processor.rs
# sdk/src/entrypoint_native.rs
* resolve conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
@@ -207,8 +207,14 @@ pub trait InvokeContext {
|
||||
) -> Result<(), InstructionError>;
|
||||
fn get_caller(&self) -> Result<&Pubkey, InstructionError>;
|
||||
fn get_programs(&self) -> &[(Pubkey, ProcessInstruction)];
|
||||
fn log_enabled(&self) -> bool;
|
||||
fn log(&mut self, message: &str);
|
||||
/// Get this invocation's logger
|
||||
fn get_logger(&self) -> Rc<RefCell<dyn Logger>>;
|
||||
/// Are cross program invocations supported
|
||||
fn is_cross_program_supported(&self) -> bool;
|
||||
}
|
||||
|
||||
/// Log messages
|
||||
pub trait Logger {
|
||||
fn log_enabled(&self) -> bool;
|
||||
fn log(&mut self, message: &str);
|
||||
}
|
||||
|
Reference in New Issue
Block a user