i got logs! in a gzip file!

more to come later
This commit is contained in:
Wyatt J. Miller 2019-08-19 21:46:11 -04:00
parent fdb3950670
commit 9683e88464
3 changed files with 6 additions and 4 deletions

4
.gitignore vendored
View File

@ -1,3 +1,5 @@
config.yaml config.yaml
.vscode/ .vscode/
vendor/ vendor/
*.log
*.tar.gz

View File

@ -1,6 +1,6 @@
package main package main
import "fmt" import "log"
func main() { func main() {
config := initializeConfig("config.yaml") config := initializeConfig("config.yaml")
@ -8,5 +8,5 @@ func main() {
clientConns := sshConn.dialConnection(sshConfig) clientConns := sshConn.dialConnection(sshConfig)
_ = sshConn.openSession(clientConns) _ = sshConn.openSession(clientConns)
success := sshConn.executeSFTP(clientConns) success := sshConn.executeSFTP(clientConns)
fmt.Println(success) log.Println(success)
} }

2
tar.go
View File

@ -42,7 +42,7 @@ func gzipit(source string, target string) error {
return err return err
} }
func ungzipit(source string, target string) { func gunzipit(source string, target string) {
reader, err := os.Open(source) reader, err := os.Open(source)
if err != nil { if err != nil {