Skip to content

Apache DataFusion SQL Query Engine

Add logging to datafusion cli (#1789)

Andrew Lamb21db2c69fc6e
diff --git a/datafusion-cli/Cargo.toml b/datafusion-cli/Cargo.toml
index 06a7e873e3..a50f874e2e 100644
--- a/datafusion-cli/Cargo.toml
+++ b/datafusion-cli/Cargo.toml
@@ -34,3 +34,4 @@ tokio = { version = "1.0", features = ["macros", "rt", "rt-multi-thread", "sync"
datafusion = { path = "../datafusion", version = "6.0.0" }
arrow = { version = "8.0.0" }
ballista = { path = "../ballista/rust/client", version = "0.6.0" }
+env_logger = "0.9"
\ No newline at end of file
diff --git a/datafusion-cli/src/main.rs b/datafusion-cli/src/main.rs
index 788bb27f89..470d8cac88 100644
--- a/datafusion-cli/src/main.rs
+++ b/datafusion-cli/src/main.rs
@@ -74,6 +74,7 @@ struct Args {
#[tokio::main]
pub async fn main() -> Result<()> {
+ env_logger::init();
let args = Args::parse();
if !args.quiet {