Merge "Log the command line to soong.log when soong_ui starts" into main

This commit is contained in:
Treehugger Robot 2023-07-17 13:23:17 +00:00 committed by Gerrit Code Review
commit 90d8f5514d

View file

@ -218,6 +218,11 @@ func main() {
trace.SetOutput(filepath.Join(logsDir, c.logsPrefix+"build.trace")) trace.SetOutput(filepath.Join(logsDir, c.logsPrefix+"build.trace"))
log.Verbose("Command Line: ")
for i, arg := range os.Args {
log.Verbosef(" [%d] %s", i, arg)
}
defer func() { defer func() {
stat.Finish() stat.Finish()
criticalPath.WriteToMetrics(met) criticalPath.WriteToMetrics(met)