Fix documentation error and logging prefix for STDOUT

This commit is contained in:
Tony Blyler 2016-05-13 17:42:37 -04:00
parent a6dfb7e698
commit 4e5e70f752
No known key found for this signature in database
GPG key ID: 25C9D3A655D1A65C
2 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@ Uploads .torrent files from a local "blackhole" to a remote (SSH) rtorrent watch
# Installation # Installation
## Manual ## Manual
1. Install [Go](https://golang.org) for your Operating System 1. Install [Go](https://golang.org) for your Operating System
2. Run `$ go get -u github.com/tblyler/hoarder/cmd` 2. Run `$ go get -u github.com/tblyler/hoarder/cmd/hoarder`
3. If your `GOPATH` is in your `PATH`, run `$ hoarder -config $PATH_TO_HOARDER_CONF` 3. If your `GOPATH` is in your `PATH`, run `$ hoarder -config $PATH_TO_HOARDER_CONF`
# Configuration # Configuration
@ -25,7 +25,7 @@ Ignore the keys that start with an underscore, they are comments.
"rtorrent_password": "correct horse battery staple", "rtorrent_password": "correct horse battery staple",
"_ssh_username": "The ssh username to use for getting finished torrents from the remote host", "_ssh_username": "The ssh username to use for getting finished torrents from the remote host",
"ssh_username": "JohnDoe" "ssh_username": "JohnDoe",
"_SSH_AUTH_COMMENT": "You may choose to use an ssh key or ssh password. If both are supplied, the password will not be used.", "_SSH_AUTH_COMMENT": "You may choose to use an ssh key or ssh password. If both are supplied, the password will not be used.",

View file

@ -14,7 +14,7 @@ func main() {
configPath := flag.String("config", "", "path to the config file") configPath := flag.String("config", "", "path to the config file")
flag.Parse() flag.Parse()
logger := log.New(os.Stdout, "hoarder", log.LstdFlags) logger := log.New(os.Stdout, "hoarder ", log.LstdFlags)
if *configPath == "" { if *configPath == "" {
logger.Println("Missing config path") logger.Println("Missing config path")