Making output less verbose

This commit is contained in:
Pavel Shevaev 2023-03-29 17:26:30 +03:00
parent 304195de3d
commit f637290975
1 changed files with 4 additions and 4 deletions

View File

@ -138,7 +138,7 @@ class TaskmanTask
run_many($this->_getDeps()); run_many($this->_getDeps());
} }
msg_sys("************************ Running task '" . $this->getName() . "' ************************\n"); msg_sys("*** '" . $this->getName() . "' start ***\n");
$bench = microtime(true); $bench = microtime(true);
@ -150,8 +150,8 @@ class TaskmanTask
if(!$TASKMAN_NO_DEPS) if(!$TASKMAN_NO_DEPS)
run_many($this->_getAfterDeps()); run_many($this->_getAfterDeps());
msg_sys("************************* '" . $this->getName() . "' done (" . msg_sys("*** '" . $this->getName() . "' done(" .
round(microtime(true)-$bench,2) . '/' .round(microtime(true)-$TASKMAN_START_TIME,2) . " sec.)*************************\n"); round(microtime(true)-$bench,2) . '/' .round(microtime(true)-$TASKMAN_START_TIME,2) . " sec.) ***\n");
$this->has_run[$args_str] = true; $this->has_run[$args_str] = true;
$this->is_running = false; $this->is_running = false;
@ -644,7 +644,7 @@ function main($argv = array(), $help_func = null, $proc_argv = true)
else if($default_task) else if($default_task)
$default_task->run($argv); $default_task->run($argv);
msg_sys("************************ All done (".round(microtime(true)-$GLOBALS['TASKMAN_START_TIME'],2)." sec.)************************\n"); msg_sys("**** All done (".round(microtime(true)-$GLOBALS['TASKMAN_START_TIME'],2)." sec.) ****\n");
} }
function usage($script_name = "<taskman-script>") function usage($script_name = "<taskman-script>")