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');
|
CLI::logging("Syncronization canceled 🚫\n",null, 'red');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$startTime = microtime(true);
|
||||||
CLI::logging("Workspace \"$workspace\" found.......... ✅\n",null, 'green');
|
CLI::logging("Workspace \"$workspace\" found.......... ✅\n",null, 'green');
|
||||||
initWorkspace($workspace);
|
initWorkspace($workspace);
|
||||||
|
|
||||||
executeLdapCron();
|
executeLdapCron();
|
||||||
/*
|
|
||||||
$language = new Language();
|
$endTime = microtime(true);
|
||||||
$language->createLanguagePlugin($command[0], $command[1]);
|
$runtime = $endTime - $startTime;
|
||||||
*/
|
|
||||||
CLI::logging("Syncronization completed 🎉🎉🎉\n", null, 'green');
|
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 {
|
} else {
|
||||||
CLI::logging("The command requires the workspace name\n");
|
CLI::logging("The command requires the workspace name\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user