From 060814daa83f6a94f5934464ae42a406c5c7e947 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 27 Sep 2013 22:31:24 +0200 Subject: Log: new logging library API Prepare to migrate away from GLib. Currently, we're still using GLib as a backend. --- test/run_inotify.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/run_inotify.cxx') diff --git a/test/run_inotify.cxx b/test/run_inotify.cxx index 459d0c504..6796480e5 100644 --- a/test/run_inotify.cxx +++ b/test/run_inotify.cxx @@ -21,6 +21,7 @@ #include "InotifySource.hxx" #include "event/Loop.hxx" #include "util/Error.hxx" +#include "Log.hxx" #include @@ -68,14 +69,14 @@ int main(int argc, char **argv) my_inotify_callback, nullptr, error); if (source == NULL) { - g_warning("%s", error.GetMessage()); + LogError(error); return 2; } int descriptor = source->Add(path, IN_MASK, error); if (descriptor < 0) { delete source; - g_warning("%s", error.GetMessage()); + LogError(error); return 2; } -- cgit v1.2.3