Added logging

This commit is contained in:
Saifeddine ALOUI 2024-01-27 22:02:31 +01:00
parent b010919faa
commit 80d72ca433
8 changed files with 214 additions and 191 deletions

5
app.py
View File

@ -22,6 +22,8 @@ import argparse
from socketio import ASGIApp
import webbrowser
import threading
app = FastAPI()
# Create a Socket.IO server
@ -54,6 +56,9 @@ if __name__ == "__main__":
root_path = Path(__file__).parent
lollms_paths = LollmsPaths.find_paths(force_local=True, custom_default_cfg_path="configs/config.yaml")
config = LOLLMSConfig.autoload(lollms_paths)
if config.debug_log_file_path!="":
ASCIIColors.log_path = config.debug_log_file_path
if args.host:
config.host=args.host
if args.port:

View File

@ -1,5 +1,5 @@
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
version: 49
version: 50
binding_name: null
model_name: null
@ -41,6 +41,7 @@ db_path: database.db
# Automatic updates
debug: False
debug_log_file_path: ""
auto_update: true
auto_sync_personalities: true
auto_sync_extensions: true

@ -1 +1 @@
Subproject commit 781b1382d73749ef57783df8ef62e8f9747e2f2d
Subproject commit ab64cda254a7ed876ebdf138f124231ae725e7af

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-8d3e1c38.js"></script>
<link rel="stylesheet" href="/assets/index-483bfb4a.css">
<script type="module" crossorigin src="/assets/index-abe2c772.js"></script>
<link rel="stylesheet" href="/assets/index-ecb0c556.css">
</head>
<body>
<div id="app"></div>

View File

@ -301,6 +301,23 @@
</div>
</td>
</tr>
<tr>
<td style="min-width: 200px;">
<label for="debug_log_file_path" class="text-sm font-bold" style="margin-right: 1rem;">Debug file path:</label>
</td>
<td>
<div class="flex flex-row">
<input
type="text"
id="debug_log_file_path"
required
v-model="configFile.debug_log_file_path"
@change="settingsChanged=true"
class="m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600 "
>
</div>
</td>
</tr>
<tr>

@ -1 +1 @@
Subproject commit 0601056fee5943ba0504ebd8d2321139f464bfdd
Subproject commit 7d67d412ef94a7d67a3fe3f9ac47db325b69e0c2