new - loglevel (#612)

This commit is contained in:
Ho3ein
2023-06-16 18:25:33 +03:30
committed by GitHub
parent 97925eeebe
commit 5188d516e3
10 changed files with 50 additions and 20 deletions

View File

@@ -118,7 +118,8 @@ func (a *ServerController) restartXrayService(c *gin.Context) {
func (a *ServerController) getLogs(c *gin.Context) {
count := c.Param("count")
logs, err := a.serverService.GetLogs(count)
logLevel := c.PostForm("logLevel")
logs, err := a.serverService.GetLogs(count, logLevel)
if err != nil {
jsonMsg(c, "getLogs", err)
return