Changeset 114:aba83de344c9

Show
Ignore:
Timestamp:
10/29/08 02:07:09 (3 years ago)
Author:
cfreeze@…
Branch:
unix
Message:

add version info on start and to main file.

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Config.py

    r108 r114  
    6262                if(os.path.exists(self.__log_config_file)): 
    6363                        logging.config.fileConfig(self.__log_config_file) 
    64                         self.log.info("Using logging configuration file %s" % self.__log_config_file) 
     64                        self.log.debug("Using logging configuration file %s" % self.__log_config_file) 
    6565                else: 
    6666                        self.log.error("Log configuration file [%s] not found" % self.__log_config_file) 
     
    7474 
    7575                if(os.path.exists(self.__config_file)): 
    76                         self.log.info("Using configuration file with %s" % self.__config_file) 
     76                        self.log.debug("Using configuration file with %s" % self.__config_file) 
    7777                        self.__configParser.read(self.__config_file) 
    7878                        self._load() 
  • StormSiren.py

    r108 r114  
    5151from History import History, DEFAULT_MAX_HISTORICAL_EVENTS 
    5252 
     53__RELEASE_VERSION = "2.0 RC1" 
     54__RELEASE_MONTH   = "10" 
     55__RELEASE_DAY     = "28" 
     56__RELEASE_YEAR    = "2008" 
    5357 
    5458def main(): 
    5559        parser = OptionParser() 
    5660        log = logging.getLogger() 
     61 
    5762 
    5863        parser.add_option("-c", "--conf", dest="conf", 
     
    9398        conf = StormConfig(options.conf, options.logconf) 
    9499 
     100        log.info("StormSiren: v%s (%s/%s/%s)" % (__RELEASE_VERSION,  
     101                                                        __RELEASE_MONTH,  
     102                                                        __RELEASE_DAY,  
     103                                                        __RELEASE_YEAR)) 
     104        log.info("Copyright (C) %s Chris Freeze <cfreeze\/cfreeze_com\>" % __RELEASE_YEAR) 
     105        log.info("This is free software and comes with no warranty; see the included LICENSE file for details.") 
     106 
    95107        history_file = options.history or conf.history_file 
    96108        max_history = int(options.maxhistory) or conf.max_history