Problem in 5.1: log viewer, console output, duplicate lines

Hello,
seems like log viewer displays duplicate lines when displaying console output from MSBuild-invoked programs.
Our build configuration runs utilities which in their turn dump some stuff to console.

Here's sample of how it looks like in the build log viewer, log tail:

[04:47:56]: [Project "someBuildFile.build" (SOMETARGET target(s)):] xxx.Program Information: 0 : Added: item 1, xxx
[04:47:56]: [Project "someBuildFile.build" (SOMETARGET target(s)):] DateTime=2010-04-27T11:47:56.5889084Z
[04:47:56]: xxx.Program Information: 0 : Added: item 2, xxx
[04:47:56]: DateTime=2010-04-27T11:47:56.7545394Z
[04:47:56]: xxx.Program Information: 0 : Added: item 3, xxx
[04:47:56]: DateTime=2010-04-27T11:47:56.8773012Z
[04:47:57]: xxx.Program Information: 0 : Added: item 4, xxx
[04:47:57]: DateTime=2010-04-27T11:47:57.0896986Z
[04:47:56]: [Project "someBuildFile.build" (SOMETARGET target(s)):] xxx.Program Information: 0 : Added: item 2, xxx
[04:47:56]: [Project "someBuildFile.build" (SOMETARGET target(s)):] DateTime=2010-04-27T11:47:56.7545394Z
[04:47:56]: [Project "someBuildFile.build" (SOMETARGET target(s)):] xxx.Program Information: 0 : Added: item 3, xxx
[04:47:56]: [Project "someBuildFile.build" (SOMETARGET target(s)):] DateTime=2010-04-27T11:47:56.8773012Z
[04:47:57]: [Project "someBuildFile.build" (SOMETARGET target(s)):] xxx.Program Information: 0 : Added: item 4, xxx


(note: some data items replaced with "xxx", "item nnn" prior to posting)
As you can see, our software dumped several messages to console, saying  Added: item 1 .... Added: item 4 with timestamps.
And TeamCity happily displays that twice:
- one time as an original chunk
- second time line-by-line

Would be nice to see each message just once...
1 comment

Hello Roma,

Unfortunately, this is a known issue. Please have a look to http://youtrack.jetbrains.net/issue/TW-11272
The workaround is to adding /noconsolelogger command line argument for MSBuild.

The fix will be available in upcoming TeamCity 5.1.1. Thank you for reporting.

Kind regards,
Marina

0

Please sign in to leave a comment.