mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 16:31:58 +02:00
Leftover from GTK3 version of the app. Since "gtk4glsink" is not available in any GStreamer release yet, no point in checking the version.
17 lines
355 B
JavaScript
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'
|
|
});
|
|
}
|