Add logging control
This commit is contained in:
parent
96ade1c1d7
commit
f0d3cd5bdf
9 changed files with 164 additions and 24 deletions
|
|
@ -2,9 +2,9 @@ package base
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/jouir/pgterminate/log"
|
||||
"gopkg.in/yaml.v2"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
|
|
@ -64,7 +64,7 @@ func (c *Config) Read(file string) error {
|
|||
|
||||
// Reload reads from file and update configuration
|
||||
func (c *Config) Reload() {
|
||||
log.Println("Reloading configuration")
|
||||
log.Debug("Reloading configuration")
|
||||
c.mutex.Lock()
|
||||
defer c.mutex.Unlock()
|
||||
if c.File != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue