Allow failing on `getpass.getuser()`. Refs #3189.

Log as debug on windows, and as an error otherwise.