Skip to content

Commit 1ada466

Browse files
committed
chore: remove compile time debug log control
1 parent 68dcab7 commit 1ada466

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/util/log.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ namespace
1616
static const char COL_RESET[]{"\x1b[0m"};
1717
static const char RED[]{"\x1b[31m"};
1818
static const char YELLOW[]{"\x1b[33m"};
19-
#ifndef NDEBUG
2019
static const char MAGENTA[]{"\x1b[35m"};
21-
#endif
2220
// static const char GREEN[] { "\x1b[32m"};
2321
// static const char BLUE[] { "\x1b[34m"};
2422
// static const char CYAN[] { "\x1b[36m"};
@@ -80,9 +78,7 @@ Log::Log(LogLevel level_, std::ostream &ostream) : level(level_), stream(ostream
8078
stream << (is_terminal ? RED : "") << "[error] ";
8179
break;
8280
case logDEBUG:
83-
#ifndef NDEBUG
8481
stream << (is_terminal ? MAGENTA : "") << "[debug] ";
85-
#endif
8682
break;
8783
default: // logINFO:
8884
stream << "[info] ";
@@ -126,9 +122,6 @@ Log::~Log()
126122
std::cerr << std::endl;
127123
break;
128124
case logDEBUG:
129-
#ifdef NDEBUG
130-
break;
131-
#endif
132125
case logINFO:
133126
default:
134127
std::cout << buffer.str();

0 commit comments

Comments
 (0)