Skip to content

Commit

Permalink
Introduce server version number
Browse files Browse the repository at this point in the history
The Pathfinder server now recognizes itself as being version 1.0.0.

Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
  • Loading branch information
m-ronnblom committed Nov 4, 2020
1 parent ca6c1eb commit e94f692
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/pafd
Original file line number Diff line number Diff line change
@@ -112,7 +112,8 @@ try:
setup_logging(conf.log.console, conf.log.syslog, conf.log.facility,
conf.log.filter)

logger.info("Server started. Configuration: %s" % conf)
logger.info("Server version %s started. Configuration: %s" %
(paf.server.VERSION, conf))

event_loop = paf.eventloop.EventLoop()
try:
6 changes: 6 additions & 0 deletions paf/server.py
Original file line number Diff line number Diff line change
@@ -15,6 +15,12 @@
import paf.props as props
import paf.eventloop as eventloop

MAJOR_VERSION = 1
MINOR_VERSION = 0
PATCH_VERSION = 0

VERSION = "%d.%d.%d" % (MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)

logger = logging.getLogger()


0 comments on commit e94f692

Please sign in to comment.