On Thu, Nov 29, 2012 at 10:49 AM, <rich...@ecos.de> wrote:

> Hi,
>
> I had some discussion with Marc-Andre about logging and error handling
> about two month ago.
>
> My main problem with way it is done in freerdp at the moment, is that a
> GUI user will never see an error message (because it goes to stdout, which
> you might see on Linux if you start from a terminal, but you will never see
> it on windows, because there is no stdout for GUI programms).
>
> Freerdp just terminates silently if anything goes wrong. An average user
> will just throw freerdp away as a broken bit of software, also the reason
> might only be a typo on the command line, but freerdp doesn't tells about
> it...
>
> So Marc-Andre wrote down a few words about the needs of a
> logging/debugging/error handling system and I wanted to create some draft
> for the API. Unfortunately I was tight up will other projects, but now I
> have made a first start and it can be found below Marc-Andre's words on the
> wiki at https://github.com/FreeRDP/FreeRDP/wiki/Debug-System .
>
> I like to ask anybody to give feedback. If we can agree on an API I will
> implement at least a basic version of it.
>

I did a look in the proposed API and it is simple...

Personally I think we need to have something like an exception system (you
can take a look as GNU Parted does it) so we can even make special handlers
in GUI applications and have it handled in different ways.

We can offer an default exception handler that could work mostly as you
designed. The log part of it, could be done exactly as you designed but
error hangling is not flexible enough.

-- 
Otavio Salvador                             O.S. Systems
E-mail: ota...@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to