Skip to content

Commit

Permalink
Remove unused logmod (#68)
Browse files Browse the repository at this point in the history
* Remove unused logmod

* Remove unused logmod
  • Loading branch information
szmyd authored Feb 1, 2024
1 parent d7e725a commit 2f9d5d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class NuRaftMesgConan(ConanFile):
name = "nuraft_mesg"
version = "2.3.1"
version = "2.3.2"

homepage = "https://github.com/eBay/nuraft_mesg"
description = "A gRPC service for NuRAFT"
Expand Down
3 changes: 1 addition & 2 deletions include/nuraft_mesg/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
#include <sisl/fds/buffer.hpp>
#include <sisl/logging/logging.h>

SISL_LOGGING_DECL(nuraft)
SISL_LOGGING_DECL(nuraft_mesg)

#define NURAFTMESG_LOG_MODS nuraft, nuraft_mesg, grpc_server
#define NURAFTMESG_LOG_MODS nuraft_mesg, grpc_server

namespace nuraft_mesg {

Expand Down
2 changes: 1 addition & 1 deletion test_package/example_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SISL_OPTION_GROUP(client, (add, "a", "add", "Add a server to the cluster", cxxop
(remove, "r", "remove", "Remove server from cluster", cxxopts::value< uint32_t >(), "id"))

SISL_OPTIONS_ENABLE(logging, client)
SISL_LOGGING_INIT(nuraft, nuraft_mesg, httpserver_lmod, grpc_server)
SISL_LOGGING_INIT(nuraft_mesg, httpserver_lmod, grpc_server)

void cleanup(const std::string& prefix) { auto r = system(fmt::format(FMT_STRING("rm -rf {}"), prefix).data()); }

Expand Down
2 changes: 1 addition & 1 deletion test_package/example_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SISL_OPTION_GROUP(server,
(start_group, "", "create", "Group to create", cxxopts::value< uint32_t >(), ""))

SISL_OPTIONS_ENABLE(logging, server, nuraft_mesg)
SISL_LOGGING_INIT(nuraft, nuraft_mesg, grpc_server, flip)
SISL_LOGGING_INIT(nuraft_mesg, grpc_server, flip)

constexpr auto rpc_backoff = 50;
constexpr auto heartbeat_period = 100;
Expand Down

0 comments on commit 2f9d5d4

Please sign in to comment.