diff --git a/web/html/xui/inbound_client_table.html b/web/html/xui/inbound_client_table.html
index d7619dde..c4c405ec 100644
--- a/web/html/xui/inbound_client_table.html
+++ b/web/html/xui/inbound_client_table.html
@@ -40,7 +40,7 @@
-
+
{{ i18n "online" }}
@@ -52,7 +52,7 @@
{{ i18n "depleted" }}
{{ i18n "disabled" }}
- {{ i18n "online" }}
+ {{ i18n "online" }}
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index 93f25730..f52f26b7 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -133,7 +133,7 @@
{{ i18n "pages.inbounds.export" }}
-
+
{{ i18n "pages.inbounds.export" }} - {{ i18n "pages.settings.subSettings" }}
@@ -221,7 +221,7 @@
{{ i18n "pages.inbounds.export"}}
-
+
{{ i18n "pages.inbounds.export"}} - {{ i18n "pages.settings.subSettings" }}
diff --git a/web/html/xui/index.html b/web/html/xui/index.html
index abd3b8d0..30ca4490 100644
--- a/web/html/xui/index.html
+++ b/web/html/xui/index.html
@@ -313,7 +313,7 @@
+ :href="'data:application/text;charset=utf-8,' + encodeURIComponent(logModal.logs)" download="x-ui.log">
{{ i18n "download" }} x-ui.log
@@ -446,16 +446,15 @@
const logModal = {
visible: false,
- logs: [],
- formattedLogs: '',
+ logs: '',
rows: 20,
level: 'info',
syslog: false,
loading: false,
show(logs) {
this.visible = true;
- this.logs = logs || [];
- this.formattedLogs = this.logs.length > 0 ? this.formatLogs(this.logs) : "No Record...";
+ this.logs = logs;
+ this.formattedLogs = this.logs?.length > 0 ? this.formatLogs(this.logs) : "No Record...";
},
formatLogs(logs) {
let formattedLogs = '';
diff --git a/xray/log_writer.go b/xray/log_writer.go
index 2d208326..6c6a6e17 100644
--- a/xray/log_writer.go
+++ b/xray/log_writer.go
@@ -31,13 +31,13 @@ func (lw *LogWriter) Write(m []byte) (n int, err error) {
// Map the level to the appropriate logger function
switch level {
case "Debug":
- logger.Debug(msgBody)
+ logger.Debug("XRAY: " + msgBody)
case "Info":
- logger.Info(msgBody)
+ logger.Info("XRAY: " + msgBody)
case "Warning":
- logger.Warning(msgBody)
+ logger.Warning("XRAY: " + msgBody)
case "Error":
- logger.Error(msgBody)
+ logger.Error("XRAY: " + msgBody)
default:
logger.Debug("XRAY: " + msg)
}