Session log filename strings not all working
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.3.10
- OS version: 10.14.6 (Mojave)
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)com.googlecode.iterm2.plist
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglogdebuglog.txt
- Are you reporting a performance issue, excessive CPU usage, or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample No.
- Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs No.
- Are you reporting excessive memory usage? Please attach a heap analysis: https://gitlab.com/gnachman/iterm2/wikis/heapshot No.
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem:
- Open iTerm2
- In Finder, go to location of stored session logs
- Sort by Date Modified to see the latest .log file
What happened:
The latest .log filename: 20200528_115653..w0t1p0.6E7A61B1-E37A-4E07-8B40-A8838CD98C93.29811.1294606726.log
What should have happened:
The latest .log filename: 20200528_115653.Default.w0t1p0.6E7A61B1-E37A-4E07-8B40-A8838CD98C93.29811.1294606726.log
From attached debuglog.txt:
1590688613.680818 PTYSession+ARC.m:58 (-[PTYSession(ARC) fetchAutoLogFilenameWithCompletion:]_block_invoke): Using autolog filename /Users/jandeel/logs/iterm/20200528_115653..w0t1p0.6E7A61B1-E37A-4E07-8B40-A8838CD98C93.29811.1294606726.log from format (session.creationTimeString).(session.name).(session.termid).(iterm2.pid).(session.autoLogId).log
I prefer this session log name, and I have had success with it in previous iterm2 versions:
(session.name)_(session.creationTimeString).log debuglog2.txt
What happened:
The latest .log filename: _20200528_120845.log
What should have happened:
The latest .log filename: jandeel-mac_20200528_120845.log
From attached debuglog2.txt:
1590689325.642808 PTYSession+ARC.m:58 (-[PTYSession(ARC) fetchAutoLogFilenameWithCompletion:]_block_invoke): Using autolog filename /Users/jandeel/logs/iterm/20200528_120845.log from format (session.name)(session.creationTimeString).log