aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-27 22:31:24 +0200
committerMax Kellermann <max@duempel.org>2013-10-02 08:57:55 +0200
commit060814daa83f6a94f5934464ae42a406c5c7e947 (patch)
treef636ec6cdbb8e52fda6db987d2a28fc73c7b94b4 /src/fs
parentc53492a76a8a05825e1c7f699c05645eee891199 (diff)
downloadmpd-060814daa83f6a94f5934464ae42a406c5c7e947.tar.gz
mpd-060814daa83f6a94f5934464ae42a406c5c7e947.tar.xz
mpd-060814daa83f6a94f5934464ae42a406c5c7e947.zip
Log: new logging library API
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/Path.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fs/Path.cxx b/src/fs/Path.cxx
index 9fdb78d35..09616c9f4 100644
--- a/src/fs/Path.cxx
+++ b/src/fs/Path.cxx
@@ -23,6 +23,7 @@
#include "system/FatalError.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
+#include "Log.hxx"
#include "gcc.h"
#include <glib.h>
@@ -35,9 +36,6 @@
#include <stdio.h> // for sprintf()
#endif
-#undef G_LOG_DOMAIN
-#define G_LOG_DOMAIN "path"
-
/**
* Maximal number of bytes required to represent path name in UTF-8
* (including nul-terminator).
@@ -145,7 +143,8 @@ SetFSCharset(const char *charset)
fs_charset = charset;
- g_debug("SetFSCharset: fs charset is: %s", fs_charset.c_str());
+ FormatDebug(path_domain,
+ "SetFSCharset: fs charset is: %s", fs_charset.c_str());
}
const std::string &Path::GetFSCharset()
@@ -180,7 +179,8 @@ void Path::GlobalInit()
if (charset) {
SetFSCharset(charset);
} else {
- g_message("setting filesystem charset to ISO-8859-1");
+ LogDebug(path_domain,
+ "setting filesystem charset to ISO-8859-1");
SetFSCharset("ISO-8859-1");
}
}