...
|
...
|
@@ -112,13 +112,14 @@ |
|
|
|
|
|
layoutResize();
|
|
|
|
|
|
var $logWrap = $('.yoho-log-dark');
|
|
|
|
|
|
var ws = io();
|
|
|
ws.on('connect', function() {
|
|
|
ws.on('/api_cache/log', function(data) {
|
|
|
console.log(data);
|
|
|
|
|
|
$('#api-cache-log').append('<p><span class="host">'+data.host+'</span><span class="message">'+data.msg+'</span></p>')
|
|
|
$('#api-cache-log').append('<p><span class="host">'+data.host+'</span><span class="message">'+data.msg+'</span></p>');
|
|
|
|
|
|
$logWrap.scrollTop($logWrap[0].scrollHeight);
|
|
|
});
|
|
|
});
|
|
|
ws.on('error', function() {
|
...
|
...
|
|