Log failed [recall] to LOG_WML instead of ERR_NG.
This commit is contained in:
parent
c0435769bd
commit
64d7d34be1
2 changed files with 6 additions and 3 deletions
|
@ -27,6 +27,10 @@ Version 1.11.5+dev:
|
|||
* Added description for the Wose race.
|
||||
* User interface:
|
||||
* Unit ellipses are now automatically updated if a unit gains or loses its ZoC
|
||||
* WML engine:
|
||||
* If [recall] cannot find a unit to recall, the message is logged at the
|
||||
"info" severity level in the "wml" domain (instead of the "error" level in
|
||||
the "engine" domain). This means the message will be suppressed by default.
|
||||
* Miscellaneous and bug fixes
|
||||
* Creating a unit via debug mode now clears fog/shroud around the unit.
|
||||
* [move_unit_fake] now accepts an optional force_scroll= attribute (def. to
|
||||
|
|
|
@ -74,6 +74,7 @@ static lg::log_domain log_display("display");
|
|||
#define LOG_DP LOG_STREAM(info, log_display)
|
||||
|
||||
static lg::log_domain log_wml("wml");
|
||||
#define LOG_WML LOG_STREAM(info, log_wml)
|
||||
#define ERR_WML LOG_STREAM(err, log_wml)
|
||||
|
||||
static lg::log_domain log_config("config");
|
||||
|
@ -1594,9 +1595,7 @@ WML_HANDLER_FUNCTION(recall, /*event_info*/, cfg)
|
|||
}
|
||||
}
|
||||
}
|
||||
/// @todo I don't know about that error throwing. Sometimes a unit is just not available;
|
||||
/// the designer needs to check with [have_unit] or fetch the recall event.
|
||||
ERR_NG << "A [recall] tag with the following content failed:\n" << cfg.get_config().debug();
|
||||
LOG_WML << "A [recall] tag with the following content failed:\n" << cfg.get_config().debug();
|
||||
}
|
||||
|
||||
WML_HANDLER_FUNCTION(redraw, /*event_info*/, cfg)
|
||||
|
|
Loading…
Add table
Reference in a new issue