change println! to info!

This commit is contained in:
ZtRXR 2024-07-20 23:27:20 +08:00
parent 2279448436
commit 07fd43fb5f
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -13,6 +13,7 @@ Cargo.lock
# MSVC Windows builds of rustc generate these, which store debugging information # MSVC Windows builds of rustc generate these, which store debugging information
*.pdb *.pdb
/.vs

View File

@ -1,3 +1,4 @@
use log::info;
use sea_orm::{ConnectOptions, ConnectionTrait, Database, DatabaseConnection}; use sea_orm::{ConnectOptions, ConnectionTrait, Database, DatabaseConnection};
use std::error::Error; use std::error::Error;
use sea_orm::Schema; use sea_orm::Schema;
@ -17,7 +18,7 @@ impl Starter {
let schema = Schema::new(backend); let schema = Schema::new(backend);
let table_create_statement = schema.create_table_from_entity(super::word_entity::Entity); let table_create_statement = schema.create_table_from_entity(super::word_entity::Entity);
let table_create_result = self.conn.execute(backend.build(&table_create_statement)).await?; let table_create_result = self.conn.execute(backend.build(&table_create_statement)).await?;
println!("{:?}",table_create_result); info!("{:?}",table_create_result);
Ok(()) Ok(())
} }
} }