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 57 try {
58 58 //日志文件路径,获取最新的
59 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 63 reader = new BufferedReader(new FileReader(filePath));
... ...
src/main/resources/templates/logging/logging.html
... ... @@ -31,7 +31,7 @@
31 31 <script th:inline="javascript">
32 32 //websocket对象
33 33 let websocket = null;
34   - var re=location.origin;
  34 + var re=location.origin.replace("http://", "");
35 35 console.log(re);
36 36 //判断当前浏览器是否支持WebSocket
37 37 if ('WebSocket' in window) {
... ...