diff options
author | Paul Phillips <paulp@improving.org> | 2012-08-16 15:03:33 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-01 20:17:23 -0700 |
commit | 455526f52c0d7a98f2b0bef8f29e7fb542bfe600 (patch) | |
tree | 2d9f9452064409bff1a20f9c87985b63abd7fe29 /src/compiler/scala/tools/nsc/Global.scala | |
parent | 75ee65451e9cc6a2f8dcae2b10202a95d99de686 (diff) | |
download | scala-455526f52c0d7a98f2b0bef8f29e7fb542bfe600.tar.gz scala-455526f52c0d7a98f2b0bef8f29e7fb542bfe600.tar.bz2 scala-455526f52c0d7a98f2b0bef8f29e7fb542bfe600.zip |
Large logging cleanup effort.
Quieted down many logging statements which contribute
disproportionate noise. Made others emit something more sensible.
Spent lots of time on the inliner trying to find a regular
format to make the logs more readable. Long way to go here but
it'd be so worth it to have readable logs instead of mind-numbing
indiscriminate text dumps.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index 80e9ede271..fd05229088 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -271,9 +271,8 @@ class Global(var currentSettings: Settings, var reporter: Reporter) log("Running operation '%s' after every phase.\n".format(msg) + describeAfterEveryPhase(op)) } - def shouldLogAtThisPhase = ( - (settings.log.isSetByUser) - && ((settings.log containsPhase globalPhase) || (settings.log containsPhase phase)) + override def shouldLogAtThisPhase = settings.log.isSetByUser && ( + (settings.log containsPhase globalPhase) || (settings.log containsPhase phase) ) // Over 200 closure objects are eliminated by inlining this. @inline final def log(msg: => AnyRef) { |