Electron100 / butane

An ORM for Rust with a focus on simplicity and on writing Rust, not SQL
Apache License 2.0
84 stars 12 forks source link

Weird logging during migration on sqlite #110

Closed jayvdb closed 1 year ago

jayvdb commented 1 year ago

When I enable features log and debug, I get strange output in the tests. Something isnt explaining why it is logging.

i.e.

diff --git a/butane/Cargo.toml b/butane/Cargo.toml
index 9f50212..c5d4563 100644
--- a/butane/Cargo.toml
+++ b/butane/Cargo.toml
@@ -31,6 +31,7 @@ butane_codegen = { workspace = true }
 butane_core = { workspace = true }

 [dev-dependencies]
+butane_core = { workspace = true, features = ["debug", "log"] }
 butane_test_helper = { workspace = true }
 cfg-if = { workspace = true }
 exec_time = { version = "0.1.4" }

output

---- remove_one_from_many_sqlite stdout ----
connecting to :memory:
FsMigration { fs: OsFilesystem, root: "/home/jayvdb/rust/butane/butane/.butane/migrations/current" }
id
val
owner
has
owner
has
id
owner
has
owner
has
id
name
tag
id
id
title
body
published
pub_time
likes
blog
owner
has
name
created current migration
...