-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Log macros and verbosity level change for commit messages #558
Conversation
1dc38b1
to
65637cc
Compare
[verbosity fmt & args] | ||
`(when (>= @*verbosity* ~verbosity) | ||
(binding [*out* *err*] | ||
(print (ansi/bold-cyan (format ~fmt ~@args)))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhm, maybe the color part can be improved here (haven't noticed that immediately, maybe cause it's late 😄)
65637cc
to
9f06292
Compare
8d222fb
to
7cdcbf8
Compare
My rigorous testing 😄
|
7cdcbf8
to
d34e9b9
Compare
Looks good, thanks @arichiardi! Can we make the trace level output cyan (maybe not bold)? That would help differentiate it from stdout. |
We sure can 😀 |
d34e9b9
to
5aef093
Compare
@micha @alandipert Done ;) |
Another idea, should we make |
5aef093
to
d355134
Compare
@@ -68,7 +68,7 @@ | |||
|
|||
(defn transfer-listener | |||
[info] | |||
(util/dbug "Aether: %s\n" (with-out-str (pprint/pprint info))) | |||
(util/trace* "Aether: %s\n" (with-out-str (pprint/pprint info))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI:
This should fix the bad network throughput. (ref. #565)
In my environment, it takes about 10 minutes to fetch 20MB jar file with dbug
, while it takes only 20 seconds with dbug*
. I tried to make a PR by myself but I will wait for this PR to be merged.
BTW, it seems that this code was introduced by this conflict resolution commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, macro version is definitively a good call here, else the pprint is called for the info even if dbug prints are disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rfkm can you by any chance clone and confirm that this solves?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arichiardi I've just tested with this branch and confirmed the trace*
version is up to 100 times faster than the dbug
version 👍
As per #557.