mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
More concise startup logs
This commit is contained in:
10
server.js
10
server.js
@@ -255,10 +255,12 @@ async function preSetupTasks() {
|
|||||||
// Print formatted header
|
// Print formatted header
|
||||||
console.log();
|
console.log();
|
||||||
console.log(`SillyTavern ${version.pkgVersion}`);
|
console.log(`SillyTavern ${version.pkgVersion}`);
|
||||||
console.log(version.gitBranch ? `Running '${version.gitBranch}' (${version.gitRevision}) - ${version.commitDate}` : '');
|
if (version.gitBranch) {
|
||||||
if (version.gitBranch && !version.isLatest && ['staging', 'release'].includes(version.gitBranch)) {
|
console.log(`Running '${version.gitBranch}' (${version.gitRevision}) - ${version.commitDate}`);
|
||||||
console.log('INFO: Currently not on the latest commit.');
|
if (!version.isLatest && ['staging', 'release'].includes(version.gitBranch)) {
|
||||||
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('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();
|
console.log();
|
||||||
|
|
||||||
|
@@ -504,7 +504,6 @@ export function toAvatarKey(handle) {
|
|||||||
*/
|
*/
|
||||||
export async function initUserStorage(dataRoot) {
|
export async function initUserStorage(dataRoot) {
|
||||||
console.log('Using data root:', color.green(dataRoot));
|
console.log('Using data root:', color.green(dataRoot));
|
||||||
console.log();
|
|
||||||
await storage.init({
|
await storage.init({
|
||||||
dir: path.join(dataRoot, '_storage'),
|
dir: path.join(dataRoot, '_storage'),
|
||||||
ttl: false, // Never expire
|
ttl: false, // Never expire
|
||||||
|
Reference in New Issue
Block a user