Enable logging in exchange program (#3538)

This commit is contained in:
Jack May 2019-03-27 23:02:05 -07:00 committed by GitHub
parent a94bc80383
commit c30eb6185c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -379,6 +379,8 @@ pub fn process_instruction(
data: &[u8],
_tick_height: u64,
) -> Result<(), InstructionError> {
solana_logger::setup();
let command = bincode::deserialize::<ExchangeInstruction>(data).map_err(|err| {
info!("Invalid transaction data: {:?} {:?}", data, err);
InstructionError::InvalidInstructionData