mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
remove dev log
This commit is contained in:
parent
d389a61f09
commit
5fc6f7ab6f
2 changed files with 4 additions and 10 deletions
|
|
@ -1,8 +1,6 @@
|
|||
package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
|
|
@ -224,7 +222,6 @@ func LoadConfig(filePath string) (*Config, error) {
|
|||
}
|
||||
var config Config
|
||||
ext := filepath.Ext(filePath)
|
||||
log.Printf("Loading config from %s with extension %s", filePath, ext)
|
||||
if ext == ".wanf" {
|
||||
if err := wanf.DecodeFile(filePath, &config); err != nil {
|
||||
return nil, err
|
||||
|
|
@ -247,7 +244,6 @@ func (c *Config) WriteConfig(filePath string) error {
|
|||
defer file.Close()
|
||||
|
||||
ext := filepath.Ext(filePath)
|
||||
fmt.Printf("%s", ext)
|
||||
if ext == ".wanf" {
|
||||
err := wanf.NewStreamEncoder(file).Encode(c)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue