diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-04-02 18:08:52 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-04-02 18:19:14 +0200 |
commit | b3983a403070aa1b693557a931dbd08bf2bfa56e (patch) | |
tree | 9b69e4601a4ed72df33dc0c126250c2202395a91 | |
parent | c8feb0ccb543b01ac27da788050b12c0a0221e36 (diff) | |
download | dotty-b3983a403070aa1b693557a931dbd08bf2bfa56e.tar.gz dotty-b3983a403070aa1b693557a931dbd08bf2bfa56e.tar.bz2 dotty-b3983a403070aa1b693557a931dbd08bf2bfa56e.zip |
Reduce verbosity of logs.
We are already over limit on output size imposed by travis that is shown
in webpage, if we'll continue to add tests will be soon over limit even
to run builds.
This commit disables printing of classpath, and removes printlns in
several places.
In order for ShowClassTests to print info as is was printing
previously, please set "test.ShowClassTests.verbose" property.
-rw-r--r-- | src/dotty/tools/dotc/transform/Splitter.scala | 2 | ||||
-rw-r--r-- | test/test/DottyTest.scala | 5 | ||||
-rw-r--r-- | test/test/ShowClassTests.scala | 2 | ||||
-rw-r--r-- | test/test/transform/CreateCompanionObjectsTest.scala | 1 |
4 files changed, 4 insertions, 6 deletions
diff --git a/src/dotty/tools/dotc/transform/Splitter.scala b/src/dotty/tools/dotc/transform/Splitter.scala index 9c01574aa..43a91a058 100644 --- a/src/dotty/tools/dotc/transform/Splitter.scala +++ b/src/dotty/tools/dotc/transform/Splitter.scala @@ -20,7 +20,7 @@ class Splitter extends TreeTransform { /** Replace self referencing idents with ThisTypes. */ override def transformIdent(tree: Ident)(implicit ctx: Context, info: TransformerInfo) = tree.tpe match { case ThisType(cls) => - println(s"owner = ${ctx.owner}, context = ${ctx}") + ctx.debuglog(s"owner = ${ctx.owner}, context = ${ctx}") This(cls) withPos tree.pos case _ => tree } diff --git a/test/test/DottyTest.scala b/test/test/DottyTest.scala index 604f5d500..3c308e230 100644 --- a/test/test/DottyTest.scala +++ b/test/test/DottyTest.scala @@ -22,18 +22,17 @@ class DottyTest { val base = new ContextBase import base.settings._ val ctx = base.initialCtx.fresh - .setSetting(verbose, true) + //.setSetting(verbose, true) // .withSetting(debug, true) // .withSetting(debugTrace, true) // .withSetting(prompt, true) - .setSetting(Ylogcp, true) + //.setSetting(Ylogcp, true) .setSetting(printtypes, true) .setSetting(pageWidth, 90) .setSetting(log, List("<some")) // .withTyperState(new TyperState(new ConsoleReporter()(base.initialCtx))) // .withSetting(uniqid, true) - println(ctx.settings) base.definitions.init(ctx) ctx } diff --git a/test/test/ShowClassTests.scala b/test/test/ShowClassTests.scala index 5c6cb8d58..6e37e8c93 100644 --- a/test/test/ShowClassTests.scala +++ b/test/test/ShowClassTests.scala @@ -13,7 +13,7 @@ import org.junit.Test class ShowClassTests extends DottyTest { def debug_println(msg: => Any) = { - if (!sys.props.isDefinedAt("dotty.travis.build")) + if (sys.props.isDefinedAt("test.ShowClassTests.verbose")) println(msg) } diff --git a/test/test/transform/CreateCompanionObjectsTest.scala b/test/test/transform/CreateCompanionObjectsTest.scala index bee9b414e..0a50cb942 100644 --- a/test/test/transform/CreateCompanionObjectsTest.scala +++ b/test/test/transform/CreateCompanionObjectsTest.scala @@ -37,7 +37,6 @@ class CreateCompanionObjectsTest extends DottyTest { override def name: String = "test" } val transformed = transformer.transform(tree).toString - println(transformed) val classPattern = "TypeDef(Modifiers(,,List()),A," val classPos = transformed.indexOf(classPattern) val moduleClassPattern = "TypeDef(Modifiers(final module <synthetic>,,List()),A$" |