Skip to content

Commit

Permalink
Remove excess static declarations.
Browse files Browse the repository at this point in the history
This is what happens when I copy-paste carelessly...
  • Loading branch information
lively-michael authored Nov 8, 2024
1 parent 189f3e7 commit 9df356b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tools/Log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ namespace tools {
*/
class Log {

static static std::shared_ptr<spdlog::logger> initialize_logger() {
static std::shared_ptr<spdlog::logger> initialize_logger() {

static std::shared_ptr<spdlog::logger> instance = spdlog::stdout_color_st( "njoy" );
std::shared_ptr<spdlog::logger> instance = spdlog::stdout_color_st( "njoy" );
instance->set_pattern( "[%^%l%$] %v" );
#ifndef NDEBUG
instance->set_level( spdlog::level::debug );
#endif
return instance;
}

static static std::shared_ptr<spdlog::logger>& logger() {
static std::shared_ptr<spdlog::logger>& logger() {

static static std::shared_ptr<spdlog::logger> instance = initialize_logger();
static std::shared_ptr<spdlog::logger> instance = initialize_logger();
return instance;
}

Expand Down

0 comments on commit 9df356b

Please sign in to comment.