kafka-crab-js 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kafka-crab-js",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "napi": {
@@ -55,8 +55,8 @@
55
55
  },
56
56
  "packageManager": "yarn@3.6.0",
57
57
  "optionalDependencies": {
58
- "kafka-crab-js-darwin-arm64": "0.1.1",
59
- "kafka-crab-js-darwin-x64": "0.1.1",
60
- "kafka-crab-js-linux-x64-gnu": "0.1.1"
58
+ "kafka-crab-js-darwin-arm64": "0.1.2",
59
+ "kafka-crab-js-darwin-x64": "0.1.2",
60
+ "kafka-crab-js-linux-x64-gnu": "0.1.2"
61
61
  }
62
62
  }
@@ -10,6 +10,7 @@ use rdkafka::{
10
10
  };
11
11
 
12
12
  use tracing::info;
13
+ use tracing_subscriber::EnvFilter;
13
14
 
14
15
  use super::{
15
16
  kafka_consumer::{ConsumerConfiguration, KafkaConsumer},
@@ -78,7 +79,7 @@ impl KafkaClient {
78
79
  pub fn new(kafka_configuration: KafkaConfiguration) -> Self {
79
80
  match tracing_subscriber::fmt()
80
81
  .with_ansi(kafka_configuration.enable_ansi_logger.unwrap_or(false))
81
- .with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
82
+ .with_env_filter(EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")))
82
83
  .try_init()
83
84
  {
84
85
  Ok(_) => {}