duplicate info log

This commit is contained in:
sezanzeb 2021-04-02 16:52:47 +02:00
parent fa1daa51e7
commit 50f63df6c6
2 changed files with 1 additions and 8 deletions

View File

@ -153,8 +153,6 @@ def is_debug():
def log_info(name='key-mapper'):
"""Log version and name to the console."""
# read values from setup.py
logger.info(
'%s %s %s https://github.com/sezanzeb/key-mapper',
name, VERSION, COMMIT_HASH
@ -163,11 +161,6 @@ def log_info(name='key-mapper'):
if EVDEV_VERSION:
logger.info('python-evdev %s', EVDEV_VERSION)
logger.info(
'%s %s %s https://github.com/sezanzeb/key-mapper',
name, VERSION, COMMIT_HASH
)
if is_debug():
logger.warning(
'Debug level will log all your keystrokes! Do not post this '

View File

@ -113,7 +113,7 @@ class SystemMapping:
def get(self, name):
"""Return the code mapped to the key."""
# the correct casing should be shown when asking the system_mapping
# for stuff. indexing case insensitive to support old < 0.8.1 presets.
# for stuff. indexing case insensitive to support old presets.
if name not in self._mapping:
# only if not e.g. both "a" and "A" are in the mapping
name = self._case_insensitive_mapping.get(str(name).lower())