Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

log message when sending coverage report #82

Merged
merged 1 commit into from
Apr 24, 2015

Conversation

fredrik
Copy link
Contributor

@fredrik fredrik commented Mar 26, 2015

This message isn't very useful to see on every test run so I'd rather 'hide' it at the debug log level or drop the log message completely.

In fact, perhaps it makes more sense to log a message when CODECLIMATE_REPO_TOKEN is set?

@noahd1
Copy link
Contributor

noahd1 commented Apr 18, 2015

In fact, perhaps it makes more sense to log a message when CODECLIMATE_REPO_TOKEN is set?

Agree. Can you add that to this PR?

@fredrik fredrik force-pushed the log-not-reporting-as-debug branch from e382ee8 to 5da7dab Compare April 21, 2015 16:05
@fredrik
Copy link
Contributor Author

fredrik commented Apr 21, 2015

I've made that change, @noahd1. 👍

unless @environment_variable_set
logger.info("Not reporting to Code Climate because ENV['CODECLIMATE_REPO_TOKEN'] is not set.")
if @environment_variable_set
logger.debug("Reporting coverage data to Code Climate.")
Copy link
Contributor

Choose a reason for hiding this comment

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

It's helpful to print this on info level, so that we can see when customers write in with issues if the environment variable was set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gotcha!

@fredrik fredrik force-pushed the log-not-reporting-as-debug branch from 5da7dab to 4e11a46 Compare April 23, 2015 11:02
@fredrik fredrik changed the title log 'not reporting' message as debug log message when sending coverage report Apr 23, 2015
noahd1 added a commit that referenced this pull request Apr 24, 2015
…debug

log message when sending coverage report
@noahd1 noahd1 merged commit eb7d633 into codeclimate:master Apr 24, 2015
@noahd1
Copy link
Contributor

noahd1 commented Apr 24, 2015

Thanks for your contribution!

@fredrik
Copy link
Contributor Author

fredrik commented Apr 24, 2015

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants