if params.Logger != nil {
properties,_ := params.Logger.Edit()
- properties["num_collections_at_start"] = initialNumberOfCollectionsAvailable
+ collectionInfo := make(map[string]interface{})
+ collectionInfo["num_collections_at_start"] = initialNumberOfCollectionsAvailable
+ properties["collection_info"] = collectionInfo
params.Logger.Record()
}
if params.Logger != nil {
properties,_ := params.Logger.Edit()
- properties["collections_read"] = totalCollections
- properties["latest_modified_date"] = sdkParams["filters"].([][]string)[0][2]
- properties["total_manifest_size"] = totalManifestSize
- properties["max_manifest_size"] = maxManifestSize
+ collectionInfo := properties["collection_info"].(map[string]interface{})
+ collectionInfo["collections_read"] = totalCollections
+ collectionInfo["latest_modified_date"] = sdkParams["filters"].([][]string)[0][2]
+ collectionInfo["total_manifest_size"] = totalManifestSize
+ collectionInfo["max_manifest_size"] = maxManifestSize
params.Logger.Record()
}
}
if arvLogger != nil {
properties, _ := arvLogger.Edit()
- properties["start_time"] = time.Now()
- properties["args"] = os.Args
+ runInfo := make(map[string]interface{})
+ runInfo["start_time"] = time.Now()
+ runInfo["args"] = os.Args
hostname, err := os.Hostname()
if err != nil {
- properties["hostname_error"] = err.Error()
+ runInfo["hostname_error"] = err.Error()
} else {
- properties["hostname"] = hostname
+ runInfo["hostname"] = hostname
}
+ runInfo["pid"] = os.Getpid()
+ properties["run_info"] = runInfo
arvLogger.Record()
}