help: Show topic id in debug log

Fixes #4353
This commit is contained in:
josteph 2019-09-16 18:12:17 +00:00
parent fececabd67
commit 13e40841fe
2 changed files with 6 additions and 1 deletions

View file

@ -599,7 +599,6 @@ std::vector<topic> generate_faction_topics(const config & era, const bool sort_g
if (const unit_race *r = unit_types.find_race(type.race_id())) {
races.insert(make_link(r->plural_name(), std::string("..") + race_prefix + r->id()));
}
DBG_HP << type.alignment() << " -> " << type.alignment_description(type.alignment(), type.genders().front()) << "\n";
alignments.insert(make_link(type.alignment_description(type.alignment(), type.genders().front()), "time_of_day"));
}
}

View file

@ -31,6 +31,11 @@
static lg::log_domain log_display("display");
#define WRN_DP LOG_STREAM(warn, log_display)
static lg::log_domain log_help("help");
#define ERR_HP LOG_STREAM(err, log_help)
#define WRN_HP LOG_STREAM(warn, log_help)
#define DBG_HP LOG_STREAM(debug, log_help)
namespace help {
help_text_area::help_text_area(CVideo &video, const section &toplevel) :
@ -60,6 +65,7 @@ void help_text_area::show_topic(const topic &t)
shown_topic_ = &t;
set_items();
set_dirty(true);
DBG_HP << "Showing topic: " << t.id << ": " << t.title << std::endl;
}