diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-22 18:56:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-08 18:26:00 +0200 |
commit | eb16296f88ce0fdb4a98a08950b58a346a6e2bd9 (patch) | |
tree | 007cd0c925705a488a053b756fc9b3f41e464118 /brep/repository-root.cxx | |
parent | 1d2117596f23b8606a17f74946a229944558d3a4 (diff) |
Log brep and libs version on web server startup
Diffstat (limited to 'brep/repository-root.cxx')
-rw-r--r-- | brep/repository-root.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/brep/repository-root.cxx b/brep/repository-root.cxx index 7af76b2..5711109 100644 --- a/brep/repository-root.cxx +++ b/brep/repository-root.cxx @@ -10,6 +10,7 @@ #include <brep/types> #include <brep/utility> +#include <brep/version> #include <brep/module> #include <brep/options> @@ -187,4 +188,15 @@ namespace brep return false; } + + void repository_root:: + version () + { + MODULE_DIAG; + + info << "module " << BREP_VERSION_STR + << ", libbrep " << LIBBREP_VERSION_STR + << ", libbpkg " << LIBBPKG_VERSION_STR + << ", libbutl " << LIBBUTL_VERSION_STR; + } } |