More concise startup logs

This commit is contained in:
Cohee 2025-03-01 21:07:12 +02:00
parent 55a295f827
commit 4c242fefe8
2 changed files with 6 additions and 5 deletions

View File

@ -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();

View File

@ -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