不关机隔天使用找不到出错日志
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 6.4k
- Forks
- 553
- PR merge metrics
- No merged PRs in 30d
Description
今天21号 昨天20号
今天操作:
ls时发现mac的日志定向到20号,全盘find没有这个带20号的文件?
立即重启,才会生成21号这个文件,重指向
这是一个bug?
昨天开机,今天ls -al,发现指向了带20号的文件,但是cat它,就会提示文件不存在,全般find也不会有这个20号的文件
mac:build qidizi$ ls -al $TMPDIR/rime.squirrel.*
lrwxr-xr-x 1 qidizi staff 60 8 20 21:46 /var/folders/nl/5smdwfb90630lqhskdqsz4xr0000gn/T//rime.squirrel.ERROR -> rime.squirrel.mac.local.qidizi.log.ERROR.20190820-214611.423
lrwxr-xr-x 1 qidizi staff 59 8 20 21:46 /var/folders/nl/5smdwfb90630lqhskdqsz4xr0000gn/T//rime.squirrel.INFO -> rime.squirrel.mac.local.qidizi.log.INFO.20190820-214611.423
lrwxr-xr-x 1 qidizi staff 62 8 20 21:46 /var/folders/nl/5smdwfb90630lqhskdqsz4xr0000gn/T//rime.squirrel.WARNING -> rime.squirrel.mac.local.qidizi.log.WARNING.20190820-214611.423
mac:build qidizi$
重启,ls -al 发现指向了21号,可以cat了
[恢复于 2019年8月21日 15:36:12]
Last login: Wed Aug 21 15:36:08 on console
mac:build qidizi$ ls -al $TMPDIR/rime.squirrel.*
lrwxr-xr-x 1 qidizi staff 59 8 21 15:36 /var/folders/nl/5smdwfb90630lqhskdqsz4xr0000gn/T//rime.squirrel.INFO -> rime.squirrel.mac.local.qidizi.log.INFO.20190821-153611.352
lrwxr-xr-x 1 qidizi staff 62 8 21 15:36 /var/folders/nl/5smdwfb90630lqhskdqsz4xr0000gn/T//rime.squirrel.WARNING -> rime.squirrel.mac.local.qidizi.log.WARNING.20190821-153611.352
-rw-r--r-- 1 qidizi staff 9990 8 21 15:38 /var/folders/nl/5smdwfb90630lqhskdqsz4xr0000gn/T//rime.squirrel.mac.local.qidizi.log.INFO.20190821-153611.352
-rw-r--r-- 1 qidizi staff 1561 8 21 15:38 /var/folders/nl/5smdwfb90630lqhskdqsz4xr0000gn/T//rime.squirrel.mac.local.qidizi.log.WARNING.20190821-153611.352
mac:build qidizi$ tail $TMPDIR/rime.squirrel.*
==> /var/folders/nl/5smdwfb90630lqhskdqsz4xr0000gn/T//rime.squirrel.INFO <==
I0821 15:38:43.771711 328689088 dictionary.cc:261] loading dictionary 'wubi86'.
I0821 15:38:48.595963 328689088 engine.cc:71] starting engine.
W0821 15:38:48.596148 328689088 punctuator.cc:32] missing punctuation mapping.
....
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the overnight macOS session and inspecting $TMPDIR/rime.squirrel.* with ls -al, find, and cat as shown in the report. Trace why the dated log symlinks point to missing files until restart; done means the current log targets remain present and readable without restarting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, swift
- Domain
- observability, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100