mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-12 01:10:38 +00:00
duplicate info log
This commit is contained in:
parent
fa1daa51e7
commit
50f63df6c6
@ -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 '
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user