Commit 72026bd6e9a5517eb59c063de4602df7d76835fb

Authored by liwei2917
1 parent 35c42ff7

修改

src/main/java/com/cnlive/shenhe/logging/LoggingWSServer.java
@@ -57,7 +57,7 @@ public class LoggingWSServer { @@ -57,7 +57,7 @@ public class LoggingWSServer {
57 try { 57 try {
58 //日志文件路径,获取最新的 58 //日志文件路径,获取最新的
59 // String filePath = System.getProperty("user.home") + "/log/" + new SimpleDateFormat("yyyyMMdd").format(new Date()) + "/"+applicationName+".log"; 59 // String filePath = System.getProperty("user.home") + "/log/" + new SimpleDateFormat("yyyyMMdd").format(new Date()) + "/"+applicationName+".log";
60 - String filePath = applicationHome + new SimpleDateFormat("yyyyMMdd").format(new Date()) + "/"+applicationName+".log"; 60 + String filePath = applicationHome+ "/" + new SimpleDateFormat("yyyyMMdd").format(new Date()) + "/"+applicationName+".log";
61 61
62 //字符流 62 //字符流
63 reader = new BufferedReader(new FileReader(filePath)); 63 reader = new BufferedReader(new FileReader(filePath));
src/main/resources/templates/logging/logging.html
@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 <script th:inline="javascript"> 31 <script th:inline="javascript">
32 //websocket对象 32 //websocket对象
33 let websocket = null; 33 let websocket = null;
34 - var re=location.origin; 34 + var re=location.origin.replace("http://", "");
35 console.log(re); 35 console.log(re);
36 //判断当前浏览器是否支持WebSocket 36 //判断当前浏览器是否支持WebSocket
37 if ('WebSocket' in window) { 37 if ('WebSocket' in window) {