logs: use %o to format error
otherwise, they are printed as multi-line and this messes up tail+date formatting
This commit is contained in:
@@ -171,7 +171,7 @@ async function reboot() {
|
||||
await notifications.clearAlert(notifications.ALERT_REBOOT, 'Reboot Required');
|
||||
|
||||
const [error] = await safe(shell.promises.sudo('reboot', [ REBOOT_CMD ], {}));
|
||||
if (error) debug('reboot: could not reboot', error);
|
||||
if (error) debug('reboot: could not reboot. %o', error);
|
||||
}
|
||||
|
||||
async function isRebootRequired() {
|
||||
|
||||
Reference in New Issue
Block a user