Changeset 114:aba83de344c9
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r108
|
r114
|
|
| 62 | 62 | if(os.path.exists(self.__log_config_file)): |
| 63 | 63 | 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) |
| 65 | 65 | else: |
| 66 | 66 | self.log.error("Log configuration file [%s] not found" % self.__log_config_file) |
| … |
… |
|
| 74 | 74 | |
| 75 | 75 | 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) |
| 77 | 77 | self.__configParser.read(self.__config_file) |
| 78 | 78 | self._load() |
-
|
r108
|
r114
|
|
| 51 | 51 | from History import History, DEFAULT_MAX_HISTORICAL_EVENTS |
| 52 | 52 | |
| | 53 | __RELEASE_VERSION = "2.0 RC1" |
| | 54 | __RELEASE_MONTH = "10" |
| | 55 | __RELEASE_DAY = "28" |
| | 56 | __RELEASE_YEAR = "2008" |
| 53 | 57 | |
| 54 | 58 | def main(): |
| 55 | 59 | parser = OptionParser() |
| 56 | 60 | log = logging.getLogger() |
| | 61 | |
| 57 | 62 | |
| 58 | 63 | parser.add_option("-c", "--conf", dest="conf", |
| … |
… |
|
| 93 | 98 | conf = StormConfig(options.conf, options.logconf) |
| 94 | 99 | |
| | 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 | |
| 95 | 107 | history_file = options.history or conf.history_file |
| 96 | 108 | max_history = int(options.maxhistory) or conf.max_history |