Skip to content

Commit ab08ddb

Browse files
authored
Merge pull request #335 from alikopasa/feat/rust-log-from-env
rust log from env for examples
2 parents d4a17b4 + 412204e commit ab08ddb

File tree

21 files changed

+24
-14
lines changed

21 files changed

+24
-14
lines changed

examples/block-finality-alerts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Create a `.env` file in the root of your project and set the following environme
1919

2020
```env
2121
RPC_WS_URL=...
22+
RUST_LOG=...
2223
```
2324

2425
This `RPC_WS_URL` should point to the RPC Websocket endpoint you want to use for Solana block subscribing.

examples/block-finality-alerts/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use {
1212

1313
#[tokio::main]
1414
pub async fn main() -> CarbonResult<()> {
15-
env_logger::init();
1615
dotenv::dotenv().ok();
16+
env_logger::init();
1717

1818
let filters = Filters::new(
1919
RpcBlockSubscribeFilter::All,

examples/jupiter-swap-alerts/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Create a `.env` file in the root of your project and set the following environme
2020
```env
2121
GEYSER_URL=...
2222
X_TOKEN=...
23+
RUST_LOG=...
2324
```
2425

2526
- `GEYSER_URL` should point to the Yellowstone Geyser RPC URL you want to use for Solana transaction crawling.
@@ -45,4 +46,4 @@ This will start the Geyser client and the pipeline will begin processing transac
4546

4647
## Metrics
4748

48-
The example doesn't include a metrics implementation by default. However, you can easily integrate custom metrics or logging by passing your own metrics implementation to the pipeline.
49+
The example doesn't include a metrics implementation by default. However, you can easily integrate custom metrics or logging by passing your own metrics implementation to the pipeline.

examples/jupiter-swap-alerts/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use {
2323

2424
#[tokio::main]
2525
pub async fn main() -> CarbonResult<()> {
26-
env_logger::init();
2726
dotenv::dotenv().ok();
27+
env_logger::init();
2828

2929
// NOTE: Workaround, that solving issue https://github.com/rustls/rustls/issues/1877
3030
rustls::crypto::aws_lc_rs::default_provider()

examples/kamino-alerts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Create a `.env` file in the root of your project and set the following environme
2020
```env
2121
GEYSER_URL=...
2222
X_TOKEN=...
23+
RUST_LOG=...
2324
```
2425

2526
- `GEYSER_URL` should point to the Yellowstone Geyser RPC URL you want to use for Solana transaction crawling.

examples/kamino-alerts/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ use {
2525

2626
#[tokio::main]
2727
pub async fn main() -> CarbonResult<()> {
28-
env_logger::init();
2928
dotenv::dotenv().ok();
29+
env_logger::init();
3030

3131
let mut account_filters: HashMap<String, SubscribeRequestFilterAccounts> = HashMap::new();
3232
account_filters.insert(

examples/meteora-activities/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Create a `.env` file in the root of your project and set the following environme
1919

2020
```env
2121
RPC_URL=...
22+
RUST_LOG=...
2223
```
2324

2425
This `RPC_URL` should point to the RPC endpoint you want to use for Solana transaction crawling.

examples/meteora-activities/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ use {
1919

2020
#[tokio::main]
2121
pub async fn main() -> CarbonResult<()> {
22-
env_logger::init();
2322
dotenv::dotenv().ok();
23+
env_logger::init();
2424

2525
let filters = Filters::new(None, None, None);
2626
let connection_config = ConnectionConfig::new(

examples/moonshot-alerts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Create a `.env` file in the root of your project and set the following environme
1919

2020
```env
2121
RPC_WS_URL=...
22+
RUST_LOG=...
2223
```
2324

2425
This `RPC_WS_URL` should point to the RPC Websocket endpoint you want to use for Solana block subscribing.

examples/moonshot-alerts/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ use {
2222

2323
#[tokio::main]
2424
pub async fn main() -> CarbonResult<()> {
25-
env_logger::init();
2625
dotenv::dotenv().ok();
26+
env_logger::init();
2727

2828
let filters = Filters::new(
2929
RpcBlockSubscribeFilter::MentionsAccountOrProgram(MOONSHOT_PROGRAM_ID.to_string()),

0 commit comments

Comments
 (0)