Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from Logify to mixlib-log for logging #150

Merged
merged 2 commits into from
Jan 29, 2020
Merged

Switch from Logify to mixlib-log for logging #150

merged 2 commits into from
Jan 29, 2020

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Oct 18, 2019

This reduces the overall number of dependencies we need to maintain and ship to customers.

Copy link

@afiune afiune left a comment

Choose a reason for hiding this comment

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

Code looks reasonable to me, the pipeline is complaining and I don't have a way to test this change so, I would like someone else to take a look before merging.

@tas50 tas50 requested a review from a team as a code owner January 27, 2020 23:30
Reduce the number of dependencies in our overall stack and use the same
logging mechanism we use in other Chef CLI tools.

This formatting matches roughly what we had before.

Signed-off-by: Tim Smith <[email protected]>
Signed-off-by: Salim Afiune <[email protected]>
@@ -17,7 +17,7 @@ Cucumber::Rake::Task.new(:acceptance) do |t|
a.push('--color')
a.push('--format progress')
a.push('--strict')
a.push('--tags ~@wip')
a.push('--tags "not @wip"')
Copy link

Choose a reason for hiding this comment

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

Fixed this so that we don't show this WARN message anymore:

Deprecated: Found tags option '~@wip'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead.

@@ -28,6 +28,7 @@ Feature: git Plugin
* I successfully run `stove`
* the git remote should have the tag "v0.0.0"

@wip
Copy link

Choose a reason for hiding this comment

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

I verified master and this scenario is also failing there, I'll create a card to fix it but for now,
I have marked as @wip so that we don't run it.

Copy link

Choose a reason for hiding this comment

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

Issue: #154

log.error(e.class.name)
log.error(e.message)
log.error(e.backtrace.join("\n"))
Stove::Log.init($stderr)
Copy link

Choose a reason for hiding this comment

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

@tas50 @tyler-ball The problem wasn't in the cucumber tests, but the actual code to log
the error to $stderr. This line fixed everything. 🥇

tenor-112058542

@afiune afiune merged commit 51005c0 into master Jan 29, 2020
@chef-expeditor chef-expeditor bot deleted the mixlib_log branch January 29, 2020 23:19
@afiune afiune mentioned this pull request Jan 29, 2020
@tyler-ball
Copy link

Thanks @afiune!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants