Add Start time and Runtime to ldap cron
This commit is contained in:
@@ -64,15 +64,18 @@ function run_auth_sources_sync($command, $args)
|
||||
CLI::logging("Syncronization canceled 🚫\n",null, 'red');
|
||||
return;
|
||||
}
|
||||
$startTime = microtime(true);
|
||||
CLI::logging("Workspace \"$workspace\" found.......... ✅\n",null, 'green');
|
||||
initWorkspace($workspace);
|
||||
|
||||
executeLdapCron();
|
||||
/*
|
||||
$language = new Language();
|
||||
$language->createLanguagePlugin($command[0], $command[1]);
|
||||
*/
|
||||
|
||||
$endTime = microtime(true);
|
||||
$runtime = $endTime - $startTime;
|
||||
|
||||
CLI::logging("Syncronization completed 🎉🎉🎉\n", null, 'green');
|
||||
CLI::logging("Start time: " . date('d-m-Y H:i:s', $startTime) . "\n", null, 'green');
|
||||
CLI::logging("Runtime: " . round($runtime, 2) . " seconds\n", null, 'green');
|
||||
} else {
|
||||
CLI::logging("The command requires the workspace name\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user