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() {
255255 // Print formatted header
256256 console.log();
257257 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+ }
262264 }
263265 console.log();
264266
src/users.js+0 -1
@@ -504,7 +504,6 @@ export function toAvatarKey(handle) {
504504 */
505505export async function initUserStorage(dataRoot) {
506506 console.log('Using data root:', color.green(dataRoot));
507- console.log();
508507 await storage.init({
509508 dir: path.join(dataRoot, '_storage'),
510509 ttl: false, // Never expire