JetBrains / sbt-tc-logger

SBT plugin generates TeamCity service messages to be used by SBT runner
Apache License 2.0
10 stars 12 forks source link

SBT Logging too verbose despite logging not required. #4

Closed fernandoracca closed 9 years ago

fernandoracca commented 10 years ago

I'm using the latest SNAPSHOT, and i can't avoid this logger from showing every line that SBT generates as DEBUG, even though my logLevel is set to INFO and I'm explicitly calling sbt with --info

Example messages produced:

[Step 1/1]

Initial source changes:

removed:Set()

added: Set(/data/....)

modified: Set()

Removed products: Set()

External API changes: API Changes: Set()

Modified binary dependencies: Set()

Initial directly invalidated sources: Set(/data...)

Sources indirectly invalidated by:

product: Set()

binary dep: Set()

external source: Set()

SBT is 0.13.6

Build.scala

logLevel := Level.Info

Logging is correctly outputted when using the "Auto" SBT mode, but then i don't get Test registration. Using the custom plugin registers the succesful tests, but then i get flooded with logging messages, which makes the console almost unusable and slows the build.

fernandoracca commented 9 years ago

Any updates on this?

shkate commented 9 years ago

I am sorry for delay. I've missed the notification about this issue. We have similar in jetbrains tracker https://youtrack.jetbrains.com/issue/TW-35404 Still not solved in full but shortly we will publish a little bit improved version.

fernandoracca commented 9 years ago

Thanks. This is creating so much log, that the Build Log will sometimes hang the browser temporarily when the log is larger than 10-15 MBs. This is making it very hard to debug builds in Team City.

fernandoracca commented 9 years ago

This is causing lots of problems. A build that takes 30 seconds in my dev box takes up to 7 miutes in the build server. Any fix for it yet?

fernandoracca commented 9 years ago

A multiproject is generating nearly 70 MBs in just compilation and simple tests.

Any updates?

shkate commented 9 years ago

Working on this. We've found that with latest version of SBT our runner is not working at all (due to some changes they made in sbt itself). I think we will have a new version shortly with some improvement in field of its verboseness as well. Sorry for the inconvenience.

fernandoracca commented 9 years ago

Thanks for the update.

Let me know as soon as you have any new version coming.

Thanks

fernandoracca commented 9 years ago

I'm still having issues using a Custom location for SBT (to be able to configure plugins and repos), and using the SBT-TeamCity-Logger (version 0.1.0, not snapshot)

addSbtPlugin("org.jetbrains.teamcity.plugins" % "sbt-teamcity-logger" % "0.1.0")

Scala compiler (8s)

[10:55:24][info] Set current project to SSE (in build file:/data/elt/local0/home/x/TeamCity/buildAgent3/work/fe6c08143bb88c96/)

[10:55:24][info] Applying State transformations jetbrains.buildServer.sbtlogger.SbtTeamCityLogger from /data/elt/local0/home/eltdev/TeamCity/buildAgent3/temp/agentTmp/agent-sbt/tc_plugin/sbt-teamcity-logger.jar[10:55:24]java.lang.ClassNotFoundException: jetbrains.buildServer.sbtlogger.SbtTeamCityLogger$[10:55:24] at java.net.URLClassLoader$1.run(URLClassLoader.java:372)[10:55:24] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)[10:55:24] at java.security.AccessController.doPrivileged(Native Method)[10:55:24] at java.net.URLClassLoader.findClass(URLClassLoader.java:360)[10:55:24] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

shkate commented 9 years ago

Sorry for the inconvenience. I will try to figure and and the fix the problem as soon as possible.

fernandoracca commented 9 years ago

any updates on this?

Thanks

fernandoracca commented 9 years ago

The issue in YouTrack is now closed, but this bug is still very much open. Any updates?

fernandoracca commented 9 years ago

https://youtrack.jetbrains.com/issue/TW-40415

fernandoracca commented 9 years ago

thanks so much. It finally works! Went from 15-30mb logs to 2-5MBs. See YouTrack item above for resolution.

shkate commented 9 years ago

Thanks for your patience!

On Mon, Mar 23, 2015 at 3:55 PM, Fernando Racca notifications@github.com wrote:

thanks so much. It finally works! Went from 15-30mb logs to 2-5MBs. See YouTrack item above for resolution.

— Reply to this email directly or view it on GitHub https://github.com/JetBrains/sbt-tc-logger/issues/4#issuecomment-85036041 .