Remove logger

This commit is contained in:
Xpl0itU 2024-04-14 19:56:07 +02:00
parent 6605e8380f
commit 91d88dc58e
4 changed files with 60 additions and 147 deletions

View file

@ -6,6 +6,7 @@ import (
"encoding/binary"
"fmt"
"io"
"log"
"net/http"
"net/url"
"os"
@ -158,7 +159,7 @@ func downloadFile(progressReporter ProgressReporter, client *http.Client, downlo
return nil
}
func DownloadTitle(titleID, outputDirectory string, doDecryption bool, progressReporter ProgressReporter, deleteEncryptedContents bool, logger *Logger, client *http.Client) error {
func DownloadTitle(titleID, outputDirectory string, doDecryption bool, progressReporter ProgressReporter, deleteEncryptedContents bool, client *http.Client) error {
tEntry := getTitleEntryFromTid(titleID)
progressReporter.ResetTotalDownloaded()
@ -252,7 +253,7 @@ func DownloadTitle(titleID, outputDirectory string, doDecryption bool, progressR
return err
}
certFile.Close()
logger.Info("Certificate saved to %v \n", certPath)
log.Printf("Certificate saved to %v \n", certPath)
g, ctx := errgroup.WithContext(context.Background())
g.SetLimit(maxConcurrentDownloads)