Wine Debugging
You can control the debug output that wine generates by manipulating the WINEDEUG environment variable. A detailed description of available options can be found here
Recently I encountered a scenario where running ruby watir tests through wine continually produced the following output:
err:rebar:REBAR_MoveChildWindows BeginDeferWindowPos returned NULL
err:rebar:REBAR_MoveChildWindows DeferWindowPos returned NULL
err:rebar:REBAR_MoveChildWindows DeferWindowPos returned NULL
err:rebar:REBAR_MoveChildWindows DeferWindowPos returned NULL
err:rebar:REBAR_MoveChildWindows DeferWindowPos returned NULL...etc...
Supressing these messages would mean defining the following env variable:
WINEDEBUG=-rebar
Another example that suppresses more common errors would be:
WINEDEBUG=fixme-all,-rebar,-local,-shell
Incidently, for this scneario, the variable needs to be set only in the local shell. However if you want to avoid having to re-enter this you might want to update ~/.bash_profile.