Commit 237cb3b1 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

cta-dcache: prepare to be a git submodule

parent 931d67fc
...@@ -18,10 +18,13 @@ ...@@ -18,10 +18,13 @@
#include "FrontendGRpcSvc.h" #include "FrontendGRpcSvc.h"
#include "version.h" #include "version.h"
static const std::string CTA_DCACHE_VERSION = "cta-dcache-" + std::string(DCACHE_INTERFACE_VERSION);
Status CtaRpcImpl::Version(::grpc::ServerContext *context, const ::google::protobuf::Empty *request, Status CtaRpcImpl::Version(::grpc::ServerContext *context, const ::google::protobuf::Empty *request,
::cta::admin::Version *response) { ::cta::admin::Version *response) {
response->set_cta_version(CTA_VERSION); response->set_cta_version(CTA_VERSION);
response->set_xrootd_ssi_protobuf_interface_version("gPRC-frontend v0.0.1"); response->set_xrootd_ssi_protobuf_interface_version(CTA_DCACHE_VERSION);
return Status::OK; return Status::OK;
} }
...@@ -168,6 +171,8 @@ int main(const int argc, char *const *const argv) { ...@@ -168,6 +171,8 @@ int main(const int argc, char *const *const argv) {
std::unique_ptr <cta::log::Logger> logger = std::unique_ptr<cta::log::Logger>(new log::StdoutLogger("cta-dev", "cta-grpc-frontend", true)); std::unique_ptr <cta::log::Logger> logger = std::unique_ptr<cta::log::Logger>(new log::StdoutLogger("cta-dev", "cta-grpc-frontend", true));
log::LogContext lc(*logger); log::LogContext lc(*logger);
lc.log(log::INFO, "Starting " + CTA_DCACHE_VERSION);
// use castor config to avoid dependency on xroot-ssi // use castor config to avoid dependency on xroot-ssi
Configuration config("/etc/cta/cta.conf"); Configuration config("/etc/cta/cta.conf");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment