File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ THE SOFTWARE.
22
22
package cmd
23
23
24
24
import (
25
- "fmt"
26
25
"os"
27
26
"path/filepath"
28
27
"strings"
@@ -82,6 +81,6 @@ func initConfig() {
82
81
83
82
// If a config file is found, read it in.
84
83
if err := viper .ReadInConfig (); err == nil {
85
- fmt . Fprintln ( os . Stderr , "Using config file: " , viper .ConfigFileUsed ())
84
+ log . WithField ( " config" , viper .ConfigFileUsed ()). Debug ( "using config file" )
86
85
}
87
86
}
Original file line number Diff line number Diff line change 5
5
port : 3993
6
6
# socket: /tmp/ipsw.sock
7
7
debug : false
8
+ # logfile: /var/log/ipswd.log
9
+ database :
10
+ # driver: sqlite3
11
+ # dsn: /var/lib/ipswd/ipswd.db
8
12
# The lines beneath this are called `modelines`. See `:help modeline`
9
13
# Feel free to remove those if you don't want/use them.
10
14
# yaml-language-server: $schema=https://blacktop.github.io/ipsw/static/schema.json
Original file line number Diff line number Diff line change @@ -36,10 +36,11 @@ func (d *daemon) Start() (err error) {
36
36
gin .SetMode (gin .ReleaseMode )
37
37
}
38
38
d .server = server .NewServer (& server.Config {
39
- Host : d .conf .Daemon .Host ,
40
- Port : d .conf .Daemon .Port ,
41
- Socket : d .conf .Daemon .Socket ,
42
- Debug : d .conf .Daemon .Debug ,
39
+ Host : d .conf .Daemon .Host ,
40
+ Port : d .conf .Daemon .Port ,
41
+ Socket : d .conf .Daemon .Socket ,
42
+ Debug : d .conf .Daemon .Debug ,
43
+ LogFile : d .conf .Daemon .LogFile ,
43
44
})
44
45
return d .server .Start ()
45
46
}
You can’t perform that action at this time.
0 commit comments