From 3ffafd6499f50ea71d1ad1a7ac554f4c4448ed6c Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Fri, 15 Oct 2021 12:03:44 +0200 Subject: add copyright and license notice + remove dead code --- logger/logger.go | 17 +++++++++++++++++ logger/logger_test.go | 19 ++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) (limited to 'logger') diff --git a/logger/logger.go b/logger/logger.go index 417a0b9..e782d3c 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -1,3 +1,20 @@ +/* Copyright (C) 2021 Nicolas Peugnet + + This file is part of dna-backup. + + dna-backup is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + dna-backup is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with dna-backup. If not, see . */ + // Package logger offers simple logging package logger diff --git a/logger/logger_test.go b/logger/logger_test.go index 2e1ff25..1338110 100644 --- a/logger/logger_test.go +++ b/logger/logger_test.go @@ -1,3 +1,20 @@ +/* Copyright (C) 2021 Nicolas Peugnet + + This file is part of dna-backup. + + dna-backup is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + dna-backup is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with dna-backup. If not, see . */ + package logger import ( @@ -119,7 +136,7 @@ func TestFlags(t *testing.T) { if !strings.Contains(s, "info 1") { t.Errorf("log output %q should contain: info 1", s) } - path := "logger/logger_test.go:117" + path := "logger/logger_test.go:134" if !strings.Contains(s, path) { t.Errorf("log output %q should contain: %s", s, path) } -- cgit v1.2.3