comparison libervia/server/server.py @ 1234:178acd785823

server: log Libervia version when backend is ready
author Goffi <goffi@goffi.org>
date Fri, 10 Jan 2020 10:07:32 +0100
parents 5bd801bd36aa
children 40c13ba6ba94
comparison
equal deleted inserted replaced
1233:5bd801bd36aa 1234:178acd785823
729 if default_dict: 729 if default_dict:
730 conf[''] = default_dict 730 conf[''] = default_dict
731 731
732 @defer.inlineCallbacks 732 @defer.inlineCallbacks
733 def backendReady(self, __): 733 def backendReady(self, __):
734 log.info(f"launching Libervia v{self.full_version}")
734 if self.options['dev_mode']: 735 if self.options['dev_mode']:
735 log.info(_("Developer mode activated")) 736 log.info(_("Developer mode activated"))
736 self.media_dir = self.bridge.getConfig("", "media_dir") 737 self.media_dir = self.bridge.getConfig("", "media_dir")
737 self.local_dir = self.bridge.getConfig("", "local_dir") 738 self.local_dir = self.bridge.getConfig("", "local_dir")
738 self.cache_root_dir = os.path.join(self.local_dir, C.CACHE_DIR) 739 self.cache_root_dir = os.path.join(self.local_dir, C.CACHE_DIR)