Skip to content

Commit

Permalink
Logger: rename be_dc and made it static
Browse files Browse the repository at this point in the history
  • Loading branch information
jackburton79 committed Oct 30, 2023
1 parent 18d817d commit 0f04bcc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/helpers/Logger.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright 2017-2020, Andrew Lindesay <apl@lindesay.co.nz>.
* Copyright 2023 Genio
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include "Logger.h"
Expand All @@ -13,7 +14,7 @@
log_level Logger::sLevel = LOG_LEVEL_INFO;
int Logger::sDestination = LOGGER_DEST_STDOUT;

BeDC be_dc("Genio");
static BeDC sBeDC("Genio");

/*static*/
void
Expand Down Expand Up @@ -163,7 +164,7 @@ Logger::_DoLog(log_level level, const char* string)
::syslog(LOG_INFO|LOG_PID|LOG_CONS|LOG_USER, "Genio: %s", (const char* const)string);
break;
case Logger::LOGGER_DEST_BEDC:
be_dc.SendMessage(string, level == LOG_LEVEL_ERROR ? DC_ERROR : DC_MESSAGE);
sBeDC.SendMessage(string, level == LOG_LEVEL_ERROR ? DC_ERROR : DC_MESSAGE);
break;
case Logger::LOGGER_DEST_STDOUT:
default:
Expand Down

0 comments on commit 0f04bcc

Please sign in to comment.