diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-11 01:36:36 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-11 01:36:36 (GMT) |
commit | 4d1fa3997cdc5c98e25008fcbdde84e47901a254 (patch) | |
tree | 27abeee0bcd85f209eaa6c6aad0985cdf1f03694 /src/helsinki.at/rhimportd | |
parent | a454be72ed140ff2bf3e4338794885cde5fb9f58 (diff) |
minor code refactoring
Diffstat (limited to 'src/helsinki.at/rhimportd')
-rw-r--r-- | src/helsinki.at/rhimportd/log.go | 37 | ||||
-rw-r--r-- | src/helsinki.at/rhimportd/main.go (renamed from src/helsinki.at/rhimportd/rhimportd.go) | 8 |
2 files changed, 8 insertions, 37 deletions
diff --git a/src/helsinki.at/rhimportd/log.go b/src/helsinki.at/rhimportd/log.go deleted file mode 100644 index d122e55..0000000 --- a/src/helsinki.at/rhimportd/log.go +++ /dev/null @@ -1,37 +0,0 @@ -// -// rhimportd -// -// The Radio Helsinki Rivendell Import Daemon -// -// -// Copyright (C) 2015 Christian Pointner <equinox@helsinki.at> -// -// This file is part of rhimportd. -// -// rhimportd 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 -// any later version. -// -// rhimportd 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 rhimportd. If not, see <http://www.gnu.org/licenses/>. -// - -package main - -import ( - // "io/ioutil" - "log" - "os" -) - -var ( - rhl = log.New(os.Stderr, "[rhimportd]\t", log.LstdFlags) - rhdl = log.New(os.Stderr, "[rhimportd-dbg]\t", log.LstdFlags) - //rhdl = log.New(ioutil.Discard, "[rhimportd-dbg]\t", log.LstdFlags) -) diff --git a/src/helsinki.at/rhimportd/rhimportd.go b/src/helsinki.at/rhimportd/main.go index 9e395d8..5184870 100644 --- a/src/helsinki.at/rhimportd/rhimportd.go +++ b/src/helsinki.at/rhimportd/main.go @@ -27,9 +27,17 @@ package main import ( "flag" "helsinki.at/rhimport" + "log" "os" "os/signal" "sync" + // "io/ioutil" +) + +var ( + rhl = log.New(os.Stderr, "[rhimportd]\t", log.LstdFlags) + rhdl = log.New(os.Stderr, "[rhimportd-dbg]\t", log.LstdFlags) + //rhdl = log.New(ioutil.Discard, "[rhimportd-dbg]\t", log.LstdFlags) ) func main() { |