Coder Social home page Coder Social logo

Comments (1)

e421083458 avatar e421083458 commented on August 16, 2024

之前代码没有传递ctx上下文,现在调整好了。

[INFO][2020-02-17T11:55:15.590][log.go:58] _com_request_in||cspanid=||method=GET||args=map[]||traceid=c0a803045e4a0ea37ee0fc98104dc7b0||spanid=9ee20da7380704bb||uri=/demo/dao?id=1||body=||from=127.0.0.1
[INFO][2020-02-17T11:55:15.590][log.go:58] _com_mysql_success||level=sql||affected_row=1||cspanid=||spanid=9ee20da7380704bb||source=/Users/niuyufu/go/src/git.xiaojukeji.com/cloud/its-service/signal-upm/dao/demo.go:25||current_time=2020-02-17 11:55:15||proc_time=0.000000000||sql=SELECT * FROM area WHERE (id = '1')||traceid=c0a803045e4a0ea37ee0fc98104dc7b0
[INFO][2020-02-17T11:55:15.590][log.go:58] _com_request_out||uri=/demo/dao?id=1||args=map[]||from=127.0.0.1||proc_time=0.001729409||traceid=c0a803045e4a0ea37ee0fc98104dc7b0||cspanid=||method=GET||response={"errno":0,"errmsg":"","data":"[{\"id\":1,\"area_name\":\"area_name\",\"city_id\":1,\"user_id\":2,\"update_at\":\"2019-06-15T00:00:00+08:00\",\"create_at\":\"2019-06-15T00:00:00+08:00\",\"delete_at\":\"2019-06-15T00:00:00+08:00\"}]","trace_id":"c0a803045e4a0ea37ee0fc98104dc7b0"}||spanid=9ee20da7380704bb

from gin_scaffold.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.