Skip to content

Commit

Permalink
fix: data_plane and control_plane bin logger (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariodu authored Jan 8, 2024
1 parent a5c4ad5 commit 67bd401
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/control_plane
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

'use strict';

const Logger = require('#self/lib/logger');
const { Loggers, loggers } = require('#self/lib/loggers');
const { ControlPlane } = require('#self/control_plane/index');

(async function() {
Logger.setSink(Logger.getPrettySink('control_plane.log'));
(async function () {
loggers.setSink(Loggers.getPrettySink('control_plane.log'));

const controlPlane = new ControlPlane();
await controlPlane.ready();
Expand Down
7 changes: 4 additions & 3 deletions bin/data_plane
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

'use strict';

const Logger = require('#self/lib/logger');
const { Loggers, loggers } = require('#self/lib/loggers');
const { DataPlane } = require('#self/data_plane/index');

(async function() {
Logger.setSink(Logger.getPrettySink('data_plane.log'));
(async function () {
loggers.setSink(Loggers.getPrettySink('data_plane.log'));

const dataPlane = new DataPlane();
await dataPlane.ready();

Expand Down

0 comments on commit 67bd401

Please sign in to comment.