Skip to content

Commit b3983a4

Browse files
committed
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.
1 parent c8feb0c commit b3983a4

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

src/dotty/tools/dotc/transform/Splitter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Splitter extends TreeTransform {
2020
/** Replace self referencing idents with ThisTypes. */
2121
override def transformIdent(tree: Ident)(implicit ctx: Context, info: TransformerInfo) = tree.tpe match {
2222
case ThisType(cls) =>
23-
println(s"owner = ${ctx.owner}, context = ${ctx}")
23+
ctx.debuglog(s"owner = ${ctx.owner}, context = ${ctx}")
2424
This(cls) withPos tree.pos
2525
case _ => tree
2626
}

test/test/DottyTest.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ class DottyTest {
2222
val base = new ContextBase
2323
import base.settings._
2424
val ctx = base.initialCtx.fresh
25-
.setSetting(verbose, true)
25+
//.setSetting(verbose, true)
2626
// .withSetting(debug, true)
2727
// .withSetting(debugTrace, true)
2828
// .withSetting(prompt, true)
29-
.setSetting(Ylogcp, true)
29+
//.setSetting(Ylogcp, true)
3030
.setSetting(printtypes, true)
3131
.setSetting(pageWidth, 90)
3232
.setSetting(log, List("<some"))
3333
// .withTyperState(new TyperState(new ConsoleReporter()(base.initialCtx)))
3434

3535
// .withSetting(uniqid, true)
36-
println(ctx.settings)
3736
base.definitions.init(ctx)
3837
ctx
3938
}

test/test/ShowClassTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import org.junit.Test
1313
class ShowClassTests extends DottyTest {
1414

1515
def debug_println(msg: => Any) = {
16-
if (!sys.props.isDefinedAt("dotty.travis.build"))
16+
if (sys.props.isDefinedAt("test.ShowClassTests.verbose"))
1717
println(msg)
1818
}
1919

test/test/transform/CreateCompanionObjectsTest.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class CreateCompanionObjectsTest extends DottyTest {
3737
override def name: String = "test"
3838
}
3939
val transformed = transformer.transform(tree).toString
40-
println(transformed)
4140
val classPattern = "TypeDef(Modifiers(,,List()),A,"
4241
val classPos = transformed.indexOf(classPattern)
4342
val moduleClassPattern = "TypeDef(Modifiers(final module <synthetic>,,List()),A$"

0 commit comments

Comments
 (0)