src/Pure/Admin/build_status.scala
changeset 77510 f5d6cd98b16a
parent 77381 a86e346b20d8
child 77582 93f4b9164b9f
--- a/src/Pure/Admin/build_status.scala	Sat Mar 04 22:29:21 2023 +0100
+++ b/src/Pure/Admin/build_status.scala	Sat Mar 04 23:25:30 2023 +0100
@@ -56,7 +56,6 @@
     progress: Progress = new Progress,
     profiles: List[Profile] = default_profiles,
     only_sessions: Set[String] = Set.empty,
-    verbose: Boolean = false,
     target_dir: Path = default_target_dir,
     ml_statistics: Boolean = false,
     image_size: (Int, Int) = default_image_size
@@ -66,8 +65,7 @@
         ML_Statistics.workers_fields).flatMap(_._2).toSet
 
     val data =
-      read_data(options, progress = progress, profiles = profiles,
-        only_sessions = only_sessions, verbose = verbose,
+      read_data(options, progress = progress, profiles = profiles, only_sessions = only_sessions,
         ml_statistics = ml_statistics, ml_statistics_domain = ml_statistics_domain)
 
     present_data(data, progress = progress, target_dir = target_dir, image_size = image_size)
@@ -213,8 +211,7 @@
     profiles: List[Profile] = default_profiles,
     only_sessions: Set[String] = Set.empty,
     ml_statistics: Boolean = false,
-    ml_statistics_domain: String => Boolean = _ => true,
-    verbose: Boolean = false
+    ml_statistics_domain: String => Boolean = _ => true
   ): Data = {
     val date = Date.now()
     var data_hosts = Map.empty[String, Set[String]]
@@ -258,7 +255,7 @@
         val Threads_Option = """threads\s*=\s*(\d+)""".r
 
         val sql = profile.select(options, columns, only_sessions)
-        progress.echo_if(verbose, sql)
+        progress.echo(sql, verbose = true)
 
         db.using_statement(sql) { stmt =>
           val res = stmt.execute_query()
@@ -620,9 +617,9 @@
         val more_args = getopts(args)
         if (more_args.nonEmpty) getopts.usage()
 
-        val progress = new Console_Progress
+        val progress = new Console_Progress(verbose = verbose)
 
-        build_status(options, progress = progress, only_sessions = only_sessions, verbose = verbose,
+        build_status(options, progress = progress, only_sessions = only_sessions,
           target_dir = target_dir, ml_statistics = ml_statistics, image_size = image_size)
       })
 }