Files
clapper/clapper_src/debug.js
Rafostar b85edbbe8f Remove gstVersionCheck
Leftover from GTK3 version of the app. Since "gtk4glsink" is not available in any GStreamer release yet, no point in checking the version.
2020-12-27 23:03:50 +01:00

17 lines
355 B
JavaScript

const { GLib } = imports.gi;
function debug(msg, levelName)
{
levelName = levelName || 'LEVEL_DEBUG';
if(msg.message) {
levelName = 'LEVEL_CRITICAL';
msg = msg.message;
}
GLib.log_structured(
'Clapper', GLib.LogLevelFlags[levelName], {
MESSAGE: msg,
SYSLOG_IDENTIFIER: 'clapper'
});
}