Skip to content

Task Parameter Logging

Kirill Osenkov edited this page Apr 26, 2020 · 8 revisions

A good example is the Hash task that only takes the ItemSpec into account, so it makes sense to not log item metadata, it's just noise, slows our builds down and inflates log sizes.

See Binlog Stats for more data on most expensive tasks and items.

Further candidates:

  • ConvertToAbsolutePath.Paths
  • ResolvePackageFileConflicts.ReferenceCopyLocalPaths
  • GenerateResource.References
  • JoinItems.Left
  • JoinItems.Right

After these we quickly hit the diminishing returns.

ConvertToAbsolutePath

  • Path Log=false
  • AbsolutePaths LogItemMetadata=false

Copy

  • SourceFiles LogItemMetadata=false
  • DestinationFiles LogItemMetadata=false
  • CopiedFiles LogItemMetadata=false

FindUnderPath

  • Files LogItemMetadata=false
  • InPath LogItemMetadata=false
  • OutOfPath Log=false

GenerateResource

  • FilesWritten LogItemMetadata=false

Hash

  • ItemsToHash LogItemMetadata=false

RemoveDuplicates

  • Inputs Log=false
  • Filtered LogItemMetadata=false

WriteLinesToFile

  • Lines LogItemMetadata=false