Ask coding questions

← Back to all posts
Live Chat
h
RossJames (6)

Hi, All the messages should be saved to chats.txt but it is empty exept server restart which i added

Answered by Vandesm14 (497) [earned 5 cycles]
View Answer
Commentshotnewtop
Vandesm14 (497)

The problem lies with repl.it's filesystem, which is not currently reliable for this use. I've tried with my own chatroom, but ditched logs because they kept getting corrupt.

Please upvote this if it helped you out 👍

themaka (176)

Files won't update until your repl stops running, so any sort of logging won't work in real time.