Update get content log
This commit is contained in:
parent
1d5a7781ae
commit
2adab647cc
|
|
@ -336,7 +336,7 @@ export class WebSocketIo {
|
||||||
socket.on('get_content_log', async (data) => {
|
socket.on('get_content_log', async (data) => {
|
||||||
try {
|
try {
|
||||||
const { line, socketId } = data
|
const { line, socketId } = data
|
||||||
const filePath = line.systemLogUrl
|
const filePath = `storage/system_logs/${line.systemLogUrl}`
|
||||||
if (fs.existsSync(filePath)) {
|
if (fs.existsSync(filePath)) {
|
||||||
// Get file stats
|
// Get file stats
|
||||||
const stats = fs.statSync(filePath)
|
const stats = fs.statSync(filePath)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue