chore: use log everywhere

This commit is contained in:
kolaente 2021-12-05 13:44:36 +01:00
parent 3508c5a26e
commit 1026b19544
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,9 @@
package main
import (
"fmt"
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
"log"
)
type MysqlDumper struct {
@ -51,7 +51,7 @@ func (m *MysqlDumper) buildDumpArgs() []string {
}
func (m *MysqlDumper) Dump(c *client.Client) error {
fmt.Printf("Dumping mysql database from container %s...\n", m.Container.Name)
log.Printf("Dumping mysql database from container %s...\n", m.Container.Name)
args := m.buildDumpArgs()

View File

@ -4,6 +4,7 @@ import (
"fmt"
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
"log"
)
type PostgresDumper struct {
@ -45,7 +46,7 @@ func (d *PostgresDumper) buildConnStr() string {
}
func (d *PostgresDumper) Dump(c *client.Client) error {
fmt.Printf("Dumping postgres database from container %s...\n", d.Container.Name)
log.Printf("Dumping postgres database from container %s...\n", d.Container.Name)
connStr := d.buildConnStr()