Closed Bug 1371498 Opened 7 years ago Closed 7 years ago

IMAP log not produced with Thunderbird 52.1.1 and possibly earlier version

Categories

(Thunderbird :: Untriaged, defect)

52 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: gds, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
Build ID: 20170526184742

Steps to reproduce:

In window set env vars in cmd window
set NSPR_LOG_FILE="c:\Users\gene\tbird_log.txt"
set NSPR_LOG_MODULES=IMAP:5

then run thunderbird:
"c:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe"


Actual results:

Thunderbird runs but no log file pointed to by NSPR_LOG_FILE is produced.


Expected results:

Log file c:\Users\gene\tbird_log.txt should be created and contain IMAP related info.

This works OK on linux with the HEAD development version that I build myself.  It also works OK on Tb version 52.1.1 on linux.

This was found while troubleshooting Bug 1366591, see Comment 36
This works for me using the latest daily TB 52 ESR Tinderbox build.

I start TB with a .bat file on Windows 7:
set NSPR_LOG_FILE=D:\Desktop\tb-imap_log.txt
set NSPR_LOG_MODULES=IMAP:5
"C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe" -p Testing -no-remote
After setting the NSPR_LOG_FILE *without* quotes it works OK on win 7 and 10. Don't know why that matters. Sorry, so guess not a bug. 
Just for the record, I manually set the env vars per comment 0 and ran tb from cmd line but didn't include the parameters '-p Testing -no-remote' and it produced the imap log. I also did this after rebooting win7 and win10 but doubt that had any effect; it was the quotes that messed it up.
Works for me ;-)
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
One more observation. If there is whitespace in the log file path you still don't put quotes around the NSPR_LOG_FILE string in windows, e.g., do like this at cmd line or in .bat file:
set NSPR_LOG_FILE=c:\Users\gene\with space\imap.log
However, quotes are required on linux (and probably OSX) with bash shell, e.g.:
export NSPR_LOG_FILE="/home/gene/with space/imap.log"
I have updated https://wiki.mozilla.org/MailNews:Logging to cover quotation marks.
Resolution: WORKSFORME → INVALID
You need to log in before you can comment on or make changes to this bug.