Skip to content

Commit

Permalink
Merge pull request #23 from OutpostUniverse/RemoveExternLogFile
Browse files Browse the repository at this point in the history
Remove extern call on logFile
  • Loading branch information
Brett208 committed Feb 23, 2020
2 parents 37c636a + 5ba3319 commit b974c16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ErrorLog.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "ErrorLog.h"


std::ostream &logFile = std::cerr;
std::ostream& logFile = std::cerr;


void LogMessage(const char* message)
Expand Down Expand Up @@ -44,7 +44,7 @@ void LogEndpoint(const char* message, unsigned long ipAddr, unsigned short port)
<< ":" << port << std::endl;
}

void LogCounters(GameServerCounters &counters)
void LogCounters(GameServerCounters& counters)
{
static GameServerCounters oldCounters = { 0 };

Expand Down Expand Up @@ -74,7 +74,7 @@ void LogCounters(GameServerCounters &counters)


/*
void LogCounters(GameServerCounters &counters)
void LogCounters(GameServerCounters& counters)
{
static GameServerCounters oldCounters = { 0 };
Expand Down
5 changes: 1 addition & 4 deletions ErrorLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@
#include <iostream>


extern std::ostream &logFile;


void LogMessage(const char* message);
void LogString(const char* message, const char* string);
void LogValue(const char* message, int value);
void LogValueHex(const char* message, int value);
void LogEndpoint(const char* message, unsigned long ipAddr, unsigned short port);

void LogCounters(GameServerCounters &counters);
void LogCounters(GameServerCounters& counters);

0 comments on commit b974c16

Please sign in to comment.