Skip to content

Commit

Permalink
Use getpass.getuser instead of getlogin
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Mar 10, 2023
1 parent 73c0897 commit 9d832ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qgis_deployment_toolbelt/utils/journalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

# standard library
import logging
from getpass import getuser
from logging.handlers import RotatingFileHandler
from os import getenv, getlogin
from os import getenv
from os.path import expanduser, expandvars
from pathlib import Path
from platform import architecture
Expand Down Expand Up @@ -126,7 +127,7 @@ def headers():
logger.debug(f"Operating System: {opersys()}")
logger.debug(f"Architecture: {architecture()[0]}")
logger.debug(f"Computer: {gethostname()}")
logger.debug(f"Launched by user: {getlogin()}")
logger.debug(f"Launched by user: {getuser()}")

if getenv("userdomain"):
logger.debug(f"OS Domain: {getenv('userdomain')}")
Expand Down

0 comments on commit 9d832ed

Please sign in to comment.