summaryrefslogtreecommitdiff
path: root/source/file.go
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-08-20 21:45:20 +0200
committerMel <mel@rnrd.eu>2026-08-20 21:45:20 +0200
commit6a4c0a16118d0b545c3c5f6a08ecad432940c1cf (patch)
tree39da9f54ce2d8a3c2401d4744b2cad6c65565ed1 /source/file.go
parentb52c860a7b1d3f57abc442bb8c1257f228d49536 (diff)
downloadddnnss-6a4c0a16118d0b545c3c5f6a08ecad432940c1cf.tar.zst
ddnnss-6a4c0a16118d0b545c3c5f6a08ecad432940c1cf.zip
Clean logging for modules
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'source/file.go')
-rw-r--r--source/file.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/file.go b/source/file.go
index 4ef0e7c..004868f 100644
--- a/source/file.go
+++ b/source/file.go
@@ -20,8 +20,6 @@ type fileSource struct {
var _ Source = (*fileSource)(nil)
func newFile(log *slog.Logger, cfg Config) (*fileSource, error) {
- log = log.With(slog.String("source", "file"))
-
if _, err := os.Stat(cfg.Path); errors.Is(err, os.ErrNotExist) {
return nil, fmt.Errorf("cannot access file for source: %w", err)
}