Re: [gnome-db] About gda_log_error



On 10/31/07, Sumit Kumar Jain <sumitskj_20 yahoo com> wrote:
>
>  Hi All,
> I have one query regarding gda_log_error. gda gda_log_error is used as
> (taking example from gda_init())
>
> ...
> if (initialized) {
>         gda_log_error (_("Attempt to re-initialize GDA library. ignored."));
>         return;
>     }
> ...
>
> In gda_log_error function the g_log is called as
>
> g_log ("Gda", G_LOG_LEVEL_ERROR, "%s", msg);
>
> With the log level set to G_LOG_LEVEL_ERROR the application will abort and
> the return statement will never get executed. I think this is not the
> intention. The intention should be to report the error and go forward. So
> the log level should be set to a lower level like G_LOG_LEVEL_WARNING.
>

This has already been corrected in SVN trunk.

Regards,

Vivien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]