[Spice-devel] [PATCH server 0.8 1/3] server: introduce red_log and red_warn

Marc-André Lureau marcandre.lureau at gmail.com
Sun Oct 9 10:21:13 PDT 2011


Hi

On Sun, Oct 9, 2011 at 7:02 PM, Alon Levy <alevy at redhat.com> wrote:
>> However, red_log(2, "blah"); is bad for several reasons. Why not use
>> red_debug()?
> The point was to add some log levels, 1 is LOG_WARN. I can make 2
> LOG_DEBUG, then that 2 goes away, but anyone can add a red_log(3,
> "blah") visible only with SPICE_LOG_LEVEL=3+.

red_debug("foo") would be easier to change later on. Log levels don't
need to be specified explicitely.

-- 
Marc-André Lureau


More information about the Spice-devel mailing list