Move print for debug message
This commit is contained in:
		
							parent
							
								
									0b6fac44dc
								
							
						
					
					
						commit
						18c422d843
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -44,6 +44,7 @@ import gajim
 | 
				
			||||||
from gajim.common import config as c_config
 | 
					from gajim.common import config as c_config
 | 
				
			||||||
from gajim.common import configpaths
 | 
					from gajim.common import configpaths
 | 
				
			||||||
from gajim.common import ged as ged_module
 | 
					from gajim.common import ged as ged_module
 | 
				
			||||||
 | 
					from gajim.common.i18n import LANG
 | 
				
			||||||
from gajim.common.contacts import LegacyContactsAPI
 | 
					from gajim.common.contacts import LegacyContactsAPI
 | 
				
			||||||
from gajim.common.events import Events
 | 
					from gajim.common.events import Events
 | 
				
			||||||
from gajim.common.types import NetworkEventsControllerT  # pylint: disable=unused-import
 | 
					from gajim.common.types import NetworkEventsControllerT  # pylint: disable=unused-import
 | 
				
			||||||
| 
						 | 
					@ -337,6 +338,8 @@ def detect_dependencies():
 | 
				
			||||||
    for dep, val in _dependencies.items():
 | 
					    for dep, val in _dependencies.items():
 | 
				
			||||||
        log('gajim').info('%-13s %s', dep, val)
 | 
					        log('gajim').info('%-13s %s', dep, val)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    log('gajim').info('Used language: %s', LANG)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def get_gpg_binary():
 | 
					def get_gpg_binary():
 | 
				
			||||||
    return _dependencies['GPG_BINARY']
 | 
					    return _dependencies['GPG_BINARY']
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -171,7 +171,6 @@ try:
 | 
				
			||||||
        # Set the env var on Windows because gettext.find() uses it to
 | 
					        # Set the env var on Windows because gettext.find() uses it to
 | 
				
			||||||
        # find the translation
 | 
					        # find the translation
 | 
				
			||||||
        os.environ['LANG'] = LANG
 | 
					        os.environ['LANG'] = LANG
 | 
				
			||||||
    print('Found default language: %s' % LANG)
 | 
					 | 
				
			||||||
except Exception as error:
 | 
					except Exception as error:
 | 
				
			||||||
    print('Failed to determine default language')
 | 
					    print('Failed to determine default language')
 | 
				
			||||||
    import traceback
 | 
					    import traceback
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue