Skip to content

Commit

Permalink
update default log level for console with ERROR (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
isacikgoz authored Apr 24, 2020
1 parent f2af62a commit d6cf82b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/ltagent/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func RunServerCmdF(cmd *cobra.Command, args []string) error {

logger.Init(&logger.Settings{
EnableConsole: true,
ConsoleLevel: "INFO",
ConsoleLevel: "ERROR",
ConsoleJson: false,
EnableFile: true,
FileLevel: "INFO",
Expand Down
2 changes: 1 addition & 1 deletion config/config.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"LogSettings": {
"EnableConsole": true,
"ConsoleLevel": "INFO",
"ConsoleLevel": "ERROR",
"ConsoleJson": false,
"EnableFile": true,
"FileLevel": "INFO",
Expand Down
2 changes: 1 addition & 1 deletion config/coordinator.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"RestTimeSec": 10,
"LogSettings": {
"EnableConsole": true,
"ConsoleLevel": "INFO",
"ConsoleLevel": "ERROR",
"ConsoleJson": false,
"EnableFile": true,
"FileLevel": "INFO",
Expand Down
2 changes: 1 addition & 1 deletion config/deployer.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"LoadTestDownloadURL": "https://github.com/mattermost/mattermost-load-test-ng/releases/download/v0.4.0-alpha/mattermost-load-test-ng-v0.4.0-alpha-linux-amd64.tar.gz",
"LogSettings": {
"EnableConsole": true,
"ConsoleLevel": "INFO",
"ConsoleLevel": "ERROR",
"ConsoleJson": false,
"EnableFile": true,
"FileLevel": "INFO",
Expand Down
2 changes: 1 addition & 1 deletion deployment/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func ReadConfig(filePath string) (*Config, error) {
v.AutomaticEnv()

v.SetDefault("LogSettings.EnableConsole", true)
v.SetDefault("LogSettings.ConsoleLevel", "INFO")
v.SetDefault("LogSettings.ConsoleLevel", "ERROR")
v.SetDefault("LogSettings.ConsoleJson", false)
v.SetDefault("LogSettings.EnableFile", true)
v.SetDefault("LogSettings.FileLevel", "INFO")
Expand Down
2 changes: 1 addition & 1 deletion loadtest/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func ReadConfig(configFilePath string) (*Config, error) {
v.AutomaticEnv()

v.SetDefault("LogSettings.EnableConsole", true)
v.SetDefault("LogSettings.ConsoleLevel", "INFO")
v.SetDefault("LogSettings.ConsoleLevel", "ERROR")
v.SetDefault("LogSettings.ConsoleJson", true)
v.SetDefault("LogSettings.EnableFile", true)
v.SetDefault("LogSettings.FileLevel", "INFO")
Expand Down

0 comments on commit d6cf82b

Please sign in to comment.