diff options
author | David Robillard <d@drobilla.net> | 2010-01-06 23:48:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-01-06 23:48:32 +0000 |
commit | fd945013143466e26f0d481d675401fa745716ba (patch) | |
tree | d029aef1cb9f87a061c04833b3597f8f8f40b90a /raul/RingBuffer.hpp | |
parent | c507f80c17ef71e9d096c8c4bdd729c7adc68f6e (diff) | |
download | raul-fd945013143466e26f0d481d675401fa745716ba.tar.gz raul-fd945013143466e26f0d481d675401fa745716ba.tar.bz2 raul-fd945013143466e26f0d481d675401fa745716ba.zip |
Fancy (optinally) coloured logging system.
Do all logging output via Raul logging streams.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2348 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/RingBuffer.hpp')
-rw-r--r-- | raul/RingBuffer.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/raul/RingBuffer.hpp b/raul/RingBuffer.hpp index 2c937cf..23d4d90 100644 --- a/raul/RingBuffer.hpp +++ b/raul/RingBuffer.hpp @@ -22,6 +22,7 @@ #include <cstring> #include <iostream> #include <glib.h> +#include "raul/log.hpp" namespace Raul { @@ -189,7 +190,7 @@ bool RingBuffer<T>::skip(size_t size) { if (read_space() < size) { - std::cerr << "WARNING: Attempt to skip past end of MIDI ring buffer" << std::endl; + warn << "Attempt to skip past end of MIDI ring buffer" << std::endl; return false; } |