Skip to content

Commit

Permalink
Get driver from cml.
Browse files Browse the repository at this point in the history
  • Loading branch information
tasdomas committed Oct 14, 2022
1 parent 082595c commit a84ccfe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/legacy/deprecation.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ const addDeprecationNotice = (opts = {}) => {

const deprecationNotice = (opts, notice) => {
const { cml } = opts;
if (cml.driver.warn) {
cml.driver.warn(notice);
const driver = cml.getDriver();
if (driver.warn) {
driver.warn(notice);
} else {
winston.warn(notice);
}
Expand Down

2 comments on commit a84ccfe

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.