Skip to content

Commit

Permalink
🐛 Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aroxu committed Jun 14, 2023
1 parent 230064b commit 4c5200d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ func savePluginConfig(data PluginConfig) {
currentPath, _ := os.Getwd()
configPath := filepath.Join(currentPath, "plugins", "Dashify", pluginConfigFileName)

utils.CheckIsExist(filepath.Join(currentPath, "plugins", "Dashify"))

file, _ := yaml.Marshal(data)

serverConfFile, errGenConf := os.Create(configPath)
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func init() {
func main() {
config.ConfigContent = config.LoadConfig()

gin.SetMode(gin.ReleaseMode)
router := gin.New()
router.Use(gin.LoggerWithFormatter(func(param gin.LogFormatterParams) string {
errorMessage := "No Error."
Expand Down

0 comments on commit 4c5200d

Please sign in to comment.