Skip to content

Commit

Permalink
change getuser
Browse files Browse the repository at this point in the history
  • Loading branch information
agnusarev committed Jun 14, 2024
1 parent 0f4ed77 commit a9a36b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/log_analyzer/log_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,7 +18,7 @@


def get_user() -> str:
return os.getlogin()
return getpass.getuser()


structlog.configure(
Expand Down

0 comments on commit a9a36b3

Please sign in to comment.