More concise startup logs

4c242fefe88b01d5273712586157e4cd5da6b3f5

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +6 -5Ignore whitespace
server.js+6 -4
@@ -255,10 +255,12 @@ async function preSetupTasks() {
255 // Print formatted header255 // Print formatted header
256 console.log();256 console.log();
257 console.log(`SillyTavern ${version.pkgVersion}`);257 console.log(`SillyTavern ${version.pkgVersion}`);
258 console.log(version.gitBranch ? `Running '${version.gitBranch}' (${version.gitRevision}) - ${version.commitDate}` : '');258 if (version.gitBranch) {
259 if (version.gitBranch && !version.isLatest && ['staging', 'release'].includes(version.gitBranch)) {259 console.log(`Running '${version.gitBranch}' (${version.gitRevision}) - ${version.commitDate}`);
260 console.log('INFO: Currently not on the latest commit.');260 if (!version.isLatest && ['staging', 'release'].includes(version.gitBranch)) {
261 console.log(' Run \'git pull\' to update. If you have any merge conflicts, run \'git reset --hard\' and \'git pull\' to reset your branch.');261 console.log('INFO: Currently not on the latest commit.');
262 console.log(' Run \'git pull\' to update. If you have any merge conflicts, run \'git reset --hard\' and \'git pull\' to reset your branch.');
263 }
262 }264 }
263 console.log();265 console.log();
264266
src/users.js+0 -1
@@ -504,7 +504,6 @@ export function toAvatarKey(handle) {
504 */504 */
505export async function initUserStorage(dataRoot) {505export async function initUserStorage(dataRoot) {
506 console.log('Using data root:', color.green(dataRoot));506 console.log('Using data root:', color.green(dataRoot));
507 console.log();
508 await storage.init({507 await storage.init({
509 dir: path.join(dataRoot, '_storage'),508 dir: path.join(dataRoot, '_storage'),
510 ttl: false, // Never expire509 ttl: false, // Never expire