chore: use log everywhere
This commit is contained in:
parent
3508c5a26e
commit
1026b19544
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue