mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-06 14:07:32 +00:00
chore(linux): Remove debug output
This commit is contained in:
parent
cc0317af2c
commit
0c78e44eda
1 changed files with 1 additions and 4 deletions
|
|
@ -80,7 +80,6 @@ def restart_ibus_subp():
|
|||
|
||||
|
||||
def verify_ibus_daemon(start):
|
||||
logging.info('**** Verify ibus running')
|
||||
realuser = os.environ.get('SUDO_USER')
|
||||
user = os.environ.get('USER')
|
||||
if realuser:
|
||||
|
|
@ -90,8 +89,6 @@ def verify_ibus_daemon(start):
|
|||
|
||||
try:
|
||||
ps = subprocess.run(('ps', '--user', user, '-o', 's=', '-o', 'cmd'), stdout=subprocess.PIPE).stdout
|
||||
debugps = subprocess.run(('bash', '-c', 'ps -ef | grep ibus-daemon'), stdout=subprocess.PIPE).stdout
|
||||
logging.info('**** running processes: %s', debugps.decode('utf-8'))
|
||||
ibus_daemons = re.findall('^[^ZT] ibus-daemon .*--xim.*', ps.decode('utf-8'), re.MULTILINE)
|
||||
if len(ibus_daemons) <= 0:
|
||||
if start:
|
||||
|
|
@ -100,7 +97,7 @@ def verify_ibus_daemon(start):
|
|||
logging.error('More than one ibus-daemon instance running! Keyman keyboards might not work as expected. '
|
||||
'Please reboot your machine.')
|
||||
else:
|
||||
logging.info('ibus already running')
|
||||
logging.debug('ibus already running')
|
||||
except subprocess.CalledProcessError as e:
|
||||
# Log critical error in order to track down #6237
|
||||
logging.critical('getting ibus-daemon failed (%s: %s)', type(e), e.args)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue