Troubleshooting: Unable to Retrieve Logs
Hey guys, I'm doing something like this, but I cannot see the logs, can someone help me figure out why?
// This function should log the block data
declare const getBlock: (conn: Connection, slot:number) => Effect.Effect<never, never, Block>;
const getBlockWithRace = (slot: number) =>
Effect.raceAll(
connections.map((connection) => getBlock(connection, slot))
);
Stream.async<never, never, SlotInfo>((emit) =>
connection.onSlotChange((slotInfo) => {
emit(Effect.succeed(Chunk.of(slotInfo)));
})
).pipe(
Stream.runForEach((slotInfo) => getBlockWithRace(slotInfo.root)),
Effect.runPromise
);