campeon23 / split-fetcher

The code is a concurrent file downloader in Go that splits a file into multiple parts, downloads them in parallel, and assembles the final file, with support for Etag validation to ensure file integrity.
MIT License
1 stars 0 forks source link

Refactor: Centralize logger initialization #124

Closed campeon23 closed 1 year ago

campeon23 commented 1 year ago

This commit centralizes the logger initialization by setting it up at a higher scope level. As a result, we have eliminated the redundant logger initialization that previously occurred within the NewAppConfig function. This change ensures that the logger is initialized only once, promoting better performance and code clarity.