mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-14 02:50:12 +01:00
More concise startup logs
This commit is contained in:
parent
55a295f827
commit
4c242fefe8
10
server.js
10
server.js
@ -255,10 +255,12 @@ async function preSetupTasks() {
|
||||
// Print formatted header
|
||||
console.log();
|
||||
console.log(`SillyTavern ${version.pkgVersion}`);
|
||||
console.log(version.gitBranch ? `Running '${version.gitBranch}' (${version.gitRevision}) - ${version.commitDate}` : '');
|
||||
if (version.gitBranch && !version.isLatest && ['staging', 'release'].includes(version.gitBranch)) {
|
||||
console.log('INFO: Currently not on the latest commit.');
|
||||
console.log(' Run \'git pull\' to update. If you have any merge conflicts, run \'git reset --hard\' and \'git pull\' to reset your branch.');
|
||||
if (version.gitBranch) {
|
||||
console.log(`Running '${version.gitBranch}' (${version.gitRevision}) - ${version.commitDate}`);
|
||||
if (!version.isLatest && ['staging', 'release'].includes(version.gitBranch)) {
|
||||
console.log('INFO: Currently not on the latest commit.');
|
||||
console.log(' Run \'git pull\' to update. If you have any merge conflicts, run \'git reset --hard\' and \'git pull\' to reset your branch.');
|
||||
}
|
||||
}
|
||||
console.log();
|
||||
|
||||
|
@ -504,7 +504,6 @@ export function toAvatarKey(handle) {
|
||||
*/
|
||||
export async function initUserStorage(dataRoot) {
|
||||
console.log('Using data root:', color.green(dataRoot));
|
||||
console.log();
|
||||
await storage.init({
|
||||
dir: path.join(dataRoot, '_storage'),
|
||||
ttl: false, // Never expire
|
||||
|
Loading…
x
Reference in New Issue
Block a user