Skip to content

Commit

Permalink
Fix problem with not loading config file
Browse files Browse the repository at this point in the history
  • Loading branch information
fkantelberg committed Mar 21, 2024
1 parent 1b0e970 commit e3cf9df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def clean(session):
@nox.session()
def py3(session):
session.install(
"-e",
".",
"pytest",
"pytest-asyncio",
"pytest-cov",
Expand Down
3 changes: 2 additions & 1 deletion src/socket_proxy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,10 @@ def run_server() -> None:


def main(args: Optional[Tuple[str]] = None) -> None:
parse_args(args, namespace=base.config)
base.config = parse_args(args, namespace=base.config)

utils.configure_logging(base.config.log_file, base.config.log_level)
_logger.info(f"Version: {base.VERSION}")

try:
if base.config.mode == "server":
Expand Down
2 changes: 1 addition & 1 deletion src/socket_proxy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

_logger = logging.getLogger(__name__)

VERSION = "5.0.3"
VERSION = "5.0.4"

CLIENT_NAME_SIZE = 8
EVENT_TIMEOUT = 0.5
Expand Down

0 comments on commit e3cf9df

Please sign in to comment.