chore(miniooni): print start time (#227)

This is useful when someone is running manual measurements and is
sharing their measurements with us, because it means we don't need
manually keep track of this bit of information.

Closes https://github.com/ooni/probe-engine/issues/1194
This commit is contained in:
Simone Basso 2021-02-12 08:17:16 +01:00 committed by GitHub
parent 3155549513
commit 311c30a961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,6 +284,9 @@ func MainWithConfiguration(experimentName string, currentOptions Options) {
}
log.Log = logger
//Mon Jan 2 15:04:05 -0700 MST 2006
log.Infof("Current time: %s", time.Now().Format("2006-01-02 15:04:05 MST"))
homeDir := gethomedir(currentOptions.HomeDir)
fatalIfFalse(homeDir != "", "home directory is empty")
miniooniDir := path.Join(homeDir, ".miniooni")