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

Log as debug on windows, and as an error otherwise.
Merge pull request #3774 from s0undt3ch/issues/3189

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