Additional logging and comments

master
Matthieu Lalonde 5 years ago
parent bf00e99a9b
commit a8e18a193e

@ -1,7 +1,7 @@
package main package main
/* /*
TODO: Save cookie file TODO: Save cookie file?
TODO: https://github.com/spf13/viper TODO: https://github.com/spf13/viper
TODO: https://github.com/sirupsen/logrus / https://github.com/golang/glog TODO: https://github.com/sirupsen/logrus / https://github.com/golang/glog
TODO: https://github.com/juju/errors TODO: https://github.com/juju/errors

@ -41,6 +41,7 @@ func New(u, p string) AltVR {
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
log.Println("AVR Logged in")
user, err := avr.fetchMyUser() user, err := avr.fetchMyUser()
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
@ -49,6 +50,7 @@ func New(u, p string) AltVR {
if err := avr.FetchFriendships(); err != nil { if err := avr.FetchFriendships(); err != nil {
log.Fatal(err) log.Fatal(err)
} }
log.Println("AVR Ready")
return avr return avr
} }

Loading…
Cancel
Save