--- a/src/mediaserver/cdplugins/uprcl/uprclutils.py
+++ b/src/mediaserver/cdplugins/uprcl/uprclutils.py
@@ -24,6 +24,8 @@
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
+
+from upmplgutils import uplog
# This must be consistent with what contentdirectory.cxx does
g_myprefix = '0$uprcl$'
@@ -300,12 +302,6 @@
else:
ret['upnp:class'] = 'object.container'
return ret
-
-
-def uplog(s):
- if not isinstance(s, unicode):
- s = s.decode('utf-8', errors='replace')
- print("%s: %s" % ('uprcl', s), file=sys.stderr)
# Parse string into (possibly multiword) tokens