wal: fix O_RDONLY attr when opening old file
wal: add first level logging
server: panic when fail to save in wal