Skip to content

Simplify logging #233

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

Merged
merged 22 commits into from
Mar 12, 2016
Merged

Simplify logging #233

merged 22 commits into from
Mar 12, 2016

Conversation

autayeu
Copy link
Contributor

@autayeu autayeu commented Jan 1, 2016

This pull contains the following changes (in addition to logging simplification itself)

  • logging is now standard Maven (no separation of logs to stderr, no shading)
  • docs (formatting mostly) improved
  • various typos fixed
  • updated dependencies (project and plugins, relevant for Update jgit version to v4.0.1.201506240215-r #216)
  • various clean-ups (diamonds, Java 7, try with resources, etc)
  • some clean-ups of testing rigs in production code
  • thread safety violation via static variable is fixed

@@ -386,7 +386,7 @@ Start out with with adding the above steps to your project, next paste this **gi
<property name="buildUserEmail" value="${git.build.user.email}"/>
<property name="buildTime" value="${git.build.time}"/>
<property name="buildHost" value="${git.build.host}"/>
<porperty name="buildVersion" value="${git.build.version}"/>
<property name="buildVersion" value="${git.build.version}"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

funny one, thanks (and for all the other typos too, thanks)

@@ -69,16 +48,18 @@
</scm>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Copy link

Choose a reason for hiding this comment

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

Could be even shortened to <encoding>UTF-8</encoding> if I remember correctly.

@mvitz
Copy link

mvitz commented Jan 3, 2016

I like most of this PR but (maybe just as a note to myself) this makes the modularisation effort (see #92 for the discussion) even harder as now everything is dependent on maven.

@autayeu
Copy link
Contributor Author

autayeu commented Jan 3, 2016

Thank you for a thorough review!

I've addressed the comments above. Namely, logging bridges now are improved. In addition, I've refactored exception handling to favor modularization, removed few remaining static collection constructors, added project encoding handling to avoid hard-coded charsets.

It turns out property="session" removed earlier is needed. This case stresses the need for proper integration testing: I only got this one with manual testing. It should have been done by integration tests.

Please, review and merge. Thank you!

@autayeu
Copy link
Contributor Author

autayeu commented Jan 7, 2016

Is there any other outstanding issues with this branch which we need to consider?

@ktoso
Copy link
Collaborator

ktoso commented Jan 7, 2016

I'll need to find time to review again – we don't want to make the modularisation effort harder, as mentioned by @mvitz. Please bear with me :)

@autayeu
Copy link
Contributor Author

autayeu commented Jan 7, 2016

OK!

@autayeu
Copy link
Contributor Author

autayeu commented Jan 13, 2016

Konrad, please, can you take a look at this pull request? Thank you!

@autayeu autayeu mentioned this pull request Jan 13, 2016
@autayeu
Copy link
Contributor Author

autayeu commented Feb 7, 2016

Konrad, what are the chances of seeing this merged?

@ktoso
Copy link
Collaborator

ktoso commented Feb 9, 2016

I'll review again today or tomorrow, was traveling and now sick. Thanks for your patience

@autayeu
Copy link
Contributor Author

autayeu commented Feb 9, 2016

Thank you!

@autayeu
Copy link
Contributor Author

autayeu commented Mar 12, 2016

Konrad, how do I interpret the situation with this pull? You're saying you'll merge it, but months later it is still not merged.

@ktoso
Copy link
Collaborator

ktoso commented Mar 12, 2016

Please don't assume malice where none is intended – i was very sick for a few weeks and then had work travel, was unable to catch up on all things. Thanks for the ping here (that was all that's needed) – will go over it now and merge if all good :)

@ktoso
Copy link
Collaborator

ktoso commented Mar 12, 2016

Minor nitpicks but no reason to delay merging, thanks again for your patience :)

ktoso added a commit that referenced this pull request Mar 12, 2016
@ktoso ktoso merged commit 80abddb into git-commit-id:master Mar 12, 2016
@autayeu
Copy link
Contributor Author

autayeu commented Mar 12, 2016

Thank you for merging! And for useful review! Now the next step - release ;)

@autayeu
Copy link
Contributor Author

autayeu commented Mar 12, 2016

By the way, your above comments are not nitpicking - there were few things in the pull which were touched by me "passing by", minor refactorings, which strictly speaking should have been separated from this pull.

void setVerbose(boolean verbose);

/*
The following borrowed from SLF4J Logger.java
Copy link
Collaborator

Choose a reason for hiding this comment

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

I had to check license compatibility... seems we're good though - MIT

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

Successfully merging this pull request may close these issues.

4 participants