adjust some log levels

This commit is contained in:
Gunter Labes 2008-01-08 09:29:27 +00:00
parent e56280353d
commit d9e640b306
2 changed files with 6 additions and 4 deletions

View File

@ -51,6 +51,7 @@
#define ERR_DP LOG_STREAM(err, display)
#define INFO_DP LOG_STREAM(info, display)
#define DBG_DP LOG_STREAM(debug, display)
namespace {
#ifdef USE_TINY_GUI
@ -1052,7 +1053,7 @@ bool display::draw_init()
}
if(invalidateAll_) {
INFO_DP << "draw() with invalidateAll\n";
DBG_DP << "draw() with invalidateAll\n";
gamemap::location topleft;
gamemap::location bottomright;
get_visible_hex_bounds(topleft, bottomright);
@ -1615,7 +1616,7 @@ void display::bounds_check_position(int& xpos, int& ypos)
void display::invalidate_all()
{
INFO_DP << "invalidate_all()\n";
DBG_DP << "invalidate_all()\n";
invalidateAll_ = true;
invalidated_.clear();
update_rect(map_area());

View File

@ -40,6 +40,7 @@
#include <stack>
#include <string>
#define DBG_FT LOG_STREAM(debug, display)
#define LOG_FT LOG_STREAM(info, display)
#define WRN_FT LOG_STREAM(warn, display)
#define ERR_FT LOG_STREAM(err, display)
@ -536,7 +537,7 @@ unsigned int text_cache::max_size_ = 50;
void text_cache::resize(unsigned int size)
{
LOG_FT << "Text cache: resize from: " << max_size_ << " to: "
DBG_FT << "Text cache: resize from: " << max_size_ << " to: "
<< size << " items in cache: " << cache_.size() << '\n';
while(size < cache_.size()) {
@ -560,7 +561,7 @@ text_surface &text_cache::find(text_surface const &t)
cache_.push_front(t);
}
if (++lookup_ % 1000 == 0) {
LOG_FT << "Text cache: " << lookup_ << " lookups, " << (hit_ / 10) << "% hits\n";
DBG_FT << "Text cache: " << lookup_ << " lookups, " << (hit_ / 10) << "% hits\n";
hit_ = 0;
}
return cache_.front();