Related: update old uses of logging/console

- These were done at the same time as logging/console
  was updated in a different branch

Signed-off-by: Eric Promislow <epromislow@suse.com>
This commit is contained in:
Eric Promislow
2021-10-06 16:56:52 -07:00
parent 18bdbcbf71
commit 027f1d26e1
2 changed files with 2 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
import { Buffer } from 'buffer';
import { ChildProcess, spawn } from 'child_process';
import { Console } from 'console';
import { EventEmitter } from 'events';
import os from 'os';
import timers from 'timers';
@@ -12,7 +11,7 @@ import LimaBackend from '@/k8s-engine/lima';
const REFRESH_INTERVAL = 5 * 1000;
const APP_NAME = 'rancher-desktop';
const console = new Console(Logging.images.stream);
const console = Logging.images;
/**
* The fields that cover the results of a finished process.

View File

@@ -1,5 +1,4 @@
import { spawn } from 'child_process';
import { Console } from 'console';
import path from 'path';
import Logging from '@/utils/logging';
@@ -7,7 +6,7 @@ import resources from '@/resources';
import * as imageProcessor from '@/k8s-engine/images/imageProcessor';
import * as childProcess from '@/utils/childProcess';
const console = new Console(Logging.images.stream);
const console = Logging.images;
export default class NerdctlImageProcessor extends imageProcessor.ImageProcessor {
protected get processorName() {