mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Removes \\n from debugf calls
This commit is contained in:
		
							parent
							
								
									110b944f45
								
							
						
					
					
						commit
						8f39f0b57d
					
				
					 3 changed files with 6 additions and 6 deletions
				
			
		|  | @ -304,7 +304,7 @@ func TestRunDisconnectTty(t *testing.T) { | |||
| 		// We're simulating a disconnect so the return value doesn't matter. What matters is the | ||||
| 		// fact that CmdRun returns. | ||||
| 		if err := cli.CmdRun("-i", "-t", unitTestImageID, "/bin/cat"); err != nil { | ||||
| 			utils.Debugf("Error CmdRun: %s\n", err) | ||||
| 			utils.Debugf("Error CmdRun: %s", err) | ||||
| 		} | ||||
| 
 | ||||
| 		close(c1) | ||||
|  | @ -549,7 +549,7 @@ func TestAttachDisconnect(t *testing.T) { | |||
| 	go func() { | ||||
| 		// Start a process in daemon mode | ||||
| 		if err := cli.CmdRun("-d", "-i", unitTestImageID, "/bin/cat"); err != nil { | ||||
| 			utils.Debugf("Error CmdRun: %s\n", err) | ||||
| 			utils.Debugf("Error CmdRun: %s", err) | ||||
| 		} | ||||
| 	}() | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										4
									
								
								image.go
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								image.go
									
										
									
									
									
								
							|  | @ -92,7 +92,7 @@ func StoreImage(img *Image, jsonData []byte, layerData Archive, root string) err | |||
| 		if err := Untar(layerData, layer); err != nil { | ||||
| 			return err | ||||
| 		} | ||||
| 		utils.Debugf("Untar time: %vs\n", time.Now().Sub(start).Seconds()) | ||||
| 		utils.Debugf("Untar time: %vs", time.Now().Sub(start).Seconds()) | ||||
| 	} | ||||
| 
 | ||||
| 	// If raw json is provided, then use it | ||||
|  | @ -335,7 +335,7 @@ func (img *Image) getParentsSize(size int64) int64 { | |||
| func NewImgJSON(src []byte) (*Image, error) { | ||||
| 	ret := &Image{} | ||||
| 
 | ||||
| 	utils.Debugf("Json string: {%s}\n", src) | ||||
| 	utils.Debugf("Json string: {%s}", src) | ||||
| 	// FIXME: Is there a cleaner way to "purify" the input json? | ||||
| 	if err := json.Unmarshal(src, ret); err != nil { | ||||
| 		return nil, err | ||||
|  |  | |||
|  | @ -499,7 +499,7 @@ func (r *Registry) PushImageJSONIndex(indexEp, remote string, imgList []*ImgData | |||
| 	} | ||||
| 	u := fmt.Sprintf("%srepositories/%s/%s", indexEp, remote, suffix) | ||||
| 	utils.Debugf("[registry] PUT %s", u) | ||||
| 	utils.Debugf("Image list pushed to index:\n%s\n", imgListJSON) | ||||
| 	utils.Debugf("Image list pushed to index:\n%s", imgListJSON) | ||||
| 	req, err := r.reqFactory.NewRequest("PUT", u, bytes.NewReader(imgListJSON)) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
|  | @ -520,7 +520,7 @@ func (r *Registry) PushImageJSONIndex(indexEp, remote string, imgList []*ImgData | |||
| 
 | ||||
| 	// Redirect if necessary | ||||
| 	for res.StatusCode >= 300 && res.StatusCode < 400 { | ||||
| 		utils.Debugf("Redirected to %s\n", res.Header.Get("Location")) | ||||
| 		utils.Debugf("Redirected to %s", res.Header.Get("Location")) | ||||
| 		req, err = r.reqFactory.NewRequest("PUT", res.Header.Get("Location"), bytes.NewReader(imgListJSON)) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Vieux
						Victor Vieux