mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-31 04:30:44 +00:00
Stop using log when printing lines.
This commit is contained in:
+1
-2
@@ -6,7 +6,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@@ -94,7 +93,7 @@ func (downloader *downloaderImpl) Download(url string, destination string, resul
|
|||||||
|
|
||||||
// handleTask processes single download task
|
// handleTask processes single download task
|
||||||
func (downloader *downloaderImpl) handleTask(task *downloadTask) {
|
func (downloader *downloaderImpl) handleTask(task *downloadTask) {
|
||||||
log.Printf("Downloading %s...\n", task.url)
|
fmt.Printf("Downloading %s...\n", task.url)
|
||||||
|
|
||||||
resp, err := http.Get(task.url)
|
resp, err := http.Get(task.url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user