From 3327b30d12588b60586685aa68e5d5d74d824a14 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 25 May 2023 02:22:56 +0400 Subject: [PATCH] Replaced logging.Logger with std log.Logger. --- internal/http/handlers.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/http/handlers.go b/internal/http/handlers.go index d6a30d1..c7401e4 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -2,7 +2,6 @@ package http import ( "crypto/sha256" - "dwelling-upload/pkg/logging" "dwelling-upload/pkg/utils" "dwelling-upload/web" "encoding/base64" @@ -19,7 +18,7 @@ import ( ) type UploadHandlers struct { - logFile *logging.Logger + logFile *log.Logger uploadDir string uploadDirSize *int64 @@ -31,7 +30,7 @@ type UploadHandlers struct { limitFileSize int64 } -func NewUploadHandlers(lFile *logging.Logger, uploadDir string, uploadDirSize *int64, +func NewUploadHandlers(lFile *log.Logger, uploadDir string, uploadDirSize *int64, hashSalt string, keepForHours int, limStorage, limFileSz int64) *UploadHandlers { return &UploadHandlers{ logFile: lFile,