Minor Updates on FT_ERROR part

This commit is contained in:
Priyeshkkumar 2020-07-02 22:21:46 +05:30
parent 1d6ffcc77a
commit fde1c1698d
2 changed files with 12 additions and 1 deletions

View File

@ -23,6 +23,8 @@
* Strated working on Callback.
* Minor Updates on support of FT_ERROR part
2020-06-30 Priyesh Kumar <priyeshkkumar@gmail.com>
* Adding new line at end of file

View File

@ -359,7 +359,16 @@
ft_default_output_handler( const struct dlg_origin* origin,
const char* string, void* data )
{
unsigned int features = dlg_output_threadsafe /*| dlg_output_tags*/ ;
unsigned int features;
if( origin->tags[0] == "error_log" )
{
features = dlg_output_threadsafe | dlg_output_tags ;
}
else
{
features = dlg_output_threadsafe /*| dlg_output_tags*/ ;
}
dlg_generic_output_stream( fileptr, features, origin, string,
dlg_default_output_styles );
}