@@ -624,6 +624,7 @@ fn main_result() -> anyhow::Result<i32> {
624
624
db,
625
625
no_isolate,
626
626
} => {
627
+ log_db ( & db) ;
627
628
let toolchain = get_local_toolchain (
628
629
& [ Profile :: Opt ] ,
629
630
& local. rustc ,
@@ -668,6 +669,7 @@ fn main_result() -> anyhow::Result<i32> {
668
669
iterations,
669
670
self_profile,
670
671
} => {
672
+ log_db ( & db) ;
671
673
let profiles = opts. profiles . 0 ;
672
674
let scenarios = opts. scenarios . 0 ;
673
675
@@ -716,6 +718,7 @@ fn main_result() -> anyhow::Result<i32> {
716
718
bench_rustc,
717
719
self_profile,
718
720
} => {
721
+ log_db ( & db) ;
719
722
println ! ( "processing artifacts" ) ;
720
723
let client = reqwest:: blocking:: Client :: new ( ) ;
721
724
let response: collector:: api:: next_artifact:: Response = client
@@ -793,6 +796,7 @@ fn main_result() -> anyhow::Result<i32> {
793
796
}
794
797
795
798
Commands :: BenchPublished { toolchain, db } => {
799
+ log_db ( & db) ;
796
800
let pool = database:: Pool :: open ( & db. db ) ;
797
801
let conn = rt. block_on ( pool. connection ( ) ) ;
798
802
let toolchain = create_toolchain_from_published_version ( & toolchain, & target_triple) ?;
@@ -942,6 +946,10 @@ fn main_result() -> anyhow::Result<i32> {
942
946
}
943
947
}
944
948
949
+ fn log_db ( db_option : & DbOption ) {
950
+ println ! ( "Using database `{}`" , db_option. db) ;
951
+ }
952
+
945
953
/// Record a collection entry into the database, specifying which benchmark steps will be executed.
946
954
async fn init_collection (
947
955
connection : & mut dyn Connection ,
0 commit comments