Skip to content

Commit

Permalink
Fixed issue with system info display
Browse files Browse the repository at this point in the history
  • Loading branch information
dhamith93 committed Oct 31, 2021
1 parent a0de392 commit a9d58c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func getMonitorLogs(serverName string, logType string, from int64, to int64, tim
mysql := getMySQLConnection(config)
defer mysql.Close()
data := mysql.GetLogFromDB(serverName, logType, from, to, time)
if convertToJsonArr || (to != 0 && from != 0) {
if (convertToJsonArr || (to != 0 && from != 0)) && logType != "system" {
return stringops.StringArrToJSONArr(data)
} else {
return data[0]
Expand Down

0 comments on commit a9d58c1

Please sign in to comment.