diff --git a/src/log_analyzer/log_analyzer.py b/src/log_analyzer/log_analyzer.py index a791f6d..eab94ca 100644 --- a/src/log_analyzer/log_analyzer.py +++ b/src/log_analyzer/log_analyzer.py @@ -5,6 +5,7 @@ import json import os import re +import getpass from collections.abc import Generator from dataclasses import dataclass from datetime import datetime @@ -17,7 +18,7 @@ def get_user() -> str: - return os.getlogin() + return getpass.getuser() structlog.configure(