Skip to content

Commit

Permalink
修改日志打印级别,非报错相关使用debug输出
Browse files Browse the repository at this point in the history
  • Loading branch information
Dot-Liu committed May 19, 2023
1 parent e131dd9 commit a1c2d03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/plugins/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func anonymousAppHandler(ctx http_service.IHttpContext) (bool, error) {
setLabels(ctx, app.Labels())
ctx.SetLabel("application_id", app.Id())
ctx.SetLabel("application", app.Name())
log.Error("application name is ", app.Name())
log.Debug("application name is ", app.Name())
return true, app.Execute(ctx)
}
return false, nil
Expand Down
2 changes: 1 addition & 1 deletion drivers/plugins/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (l *worker) DoFilter(ctx eocontext.EoContext, next eocontext.IChain) (err e
}

func (l *worker) DoHttpFilter(ctx http_service.IHttpContext, next eocontext.IChain) (err error) {
log.Error("start monitor...")
log.Debug("start monitor...")
apiID := ctx.GetLabel("api_id")
monitorManager.ConcurrencyAdd(apiID, 1)
err = next.DoChain(ctx)
Expand Down
2 changes: 1 addition & 1 deletion drivers/resources/datasource/influxdbv2/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c *Client) Write(point monitor_entry.IPoint) error {
log.Error("need: ", reflect.TypeOf((monitor_entry.IPoint)(nil)), "now: ", reflect.TypeOf(point))
return nil
}
log.Error("table: ", p.Table(), " tags: ", p.Tags(), " fields: ", p.Fields(), " time: ", p.Time())
log.Debug("table: ", p.Table(), " tags: ", p.Tags(), " fields: ", p.Fields(), " time: ", p.Time())
c.WritePoint(influxdb2.NewPoint(
p.Table(),
p.Tags(),
Expand Down

0 comments on commit a1c2d03

Please sign in to comment.