Skip to content

Commit

Permalink
[ENH] Display in log at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikado8231 committed Nov 20, 2023
1 parent 78f566c commit 32cfaea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions psa_car_controller/psacc/application/car_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from .psa_client import PSAClient
from psa_car_controller.common.mylogger import my_logger
from psa_car_controller.psa.otp.otp import CONFIG_NAME as OTP_CONFIG_NAME, ConfigException
from psa_car_controller import __version__

DEFAULT_NAME = "config.json"

Expand Down Expand Up @@ -75,6 +76,8 @@ def start_remote_control(self):
def load_app(self) -> bool:
# pylint: disable=too-many-branches
my_logger(handler_level=int(self.args.debug))

logger.info(f"App version {__version__}")

Check notice on line 80 in psa_car_controller/psacc/application/car_controller.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

psa_car_controller/psacc/application/car_controller.py#L80

Use lazy % formatting in logging functions (logging-fstring-interpolation)
if self.args.config:
self.config_name = self.args.config
if path.isfile(self.config_name):
Expand Down

0 comments on commit 32cfaea

Please sign in to comment.