mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Rewritten minLogLevel feature
This commit is contained in:
@@ -67,6 +67,7 @@ import {
|
||||
forwardFetchResponse,
|
||||
removeColorFormatting,
|
||||
getSeparator,
|
||||
setupLogLevel,
|
||||
} from './src/util.js';
|
||||
import { UPLOADS_DIRECTORY } from './src/constants.js';
|
||||
import { ensureThumbnailCache } from './src/endpoints/thumbnails.js';
|
||||
@@ -688,8 +689,9 @@ const preSetupTasks = async function () {
|
||||
function getAutorunHostname() {
|
||||
if (autorunHostname === 'auto') {
|
||||
if (enableIPv6 && enableIPv4) {
|
||||
if (avoidLocalhost) return '[::1]';
|
||||
return 'localhost';
|
||||
return avoidLocalhost
|
||||
? '[::1]'
|
||||
: 'localhost';
|
||||
}
|
||||
|
||||
if (enableIPv6) {
|
||||
@@ -755,6 +757,8 @@ const postSetupTasks = async function (v6Failed, v4Failed) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setupLogLevel();
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user