diff --git a/js/ui/main.js b/js/ui/main.js index e1cc25afa..34a3b0e78 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -147,27 +147,9 @@ function _sessionUpdated() { } } -/** - * @param {any...} args a list of values to log - */ -function _loggingFunc(...args) { - let fields = { 'MESSAGE': args.join(', ') }; - let domain = 'GNOME Shell'; - - // If the caller is an extension, add it as metadata - let extension = imports.misc.extensionUtils.getCurrentExtension(); - if (extension != null) { - domain = extension.metadata.name; - fields['GNOME_SHELL_EXTENSION_UUID'] = extension.uuid; - fields['GNOME_SHELL_EXTENSION_NAME'] = extension.metadata.name; - } - - GLib.log_structured(domain, GLib.LogLevelFlags.LEVEL_MESSAGE, fields); -} - /** @returns {void} */ async function start() { - globalThis.log = _loggingFunc; + globalThis.log = console.log; // Chain up async errors reported from C global.connect('notify-error', (global, msg, detail) => {