kopia lustrzana https://gitlab.com/tomaszg/geostat
Move debug output from cout to cerr not to mess up generated HTML
rodzic
3901dfafc7
commit
cc40e470ea
|
@ -10,7 +10,7 @@ Debug::Debug(int n) : lvl(n) {
|
||||||
|
|
||||||
indent.append(lvl - 1, '\t');
|
indent.append(lvl - 1, '\t');
|
||||||
if (lvl > 1) indent.append("*** ");
|
if (lvl > 1) indent.append("*** ");
|
||||||
std::cout << indent;
|
std::cerr << indent;
|
||||||
|
|
||||||
// std::time_t now = std::time(nullptr);
|
// std::time_t now = std::time(nullptr);
|
||||||
// std::string dt = std::ctime(&now);
|
// std::string dt = std::ctime(&now);
|
||||||
|
@ -19,7 +19,7 @@ Debug::Debug(int n) : lvl(n) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug::~Debug() {
|
Debug::~Debug() {
|
||||||
if (lvl <= debug_level) std::cout << '\n';
|
if (lvl <= debug_level) std::cerr << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
void Debug::set_debug_level(int n) { debug_level = n; }
|
void Debug::set_debug_level(int n) { debug_level = n; }
|
||||||
|
|
Ładowanie…
Reference in New Issue