Code Monkey home page Code Monkey logo

myapp's People

Contributors

dumindu avatar josemukorivo avatar vsel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

myapp's Issues

logger.Print() and .Printf() print wrong location when used with Caller()

If the log is created using .With().Caller(), the location printed using logger.Print() and logger.Printf() print the location of Print() and Printf() in logger.go. The following implentations fix this:

func (l *GwLogger) Print(v ...interface{}) {
    l.logger.Debug().CallerSkipFrame(2).Msg(fmt.Sprint(v...))
}

func (l *GwLogger) Printf(format string, v ...interface{}) {
    l.logger.Debug().CallerSkipFrame(2).Msgf(format, v...)
}

MySQL fails to launch

$ docker-compose up
Starting myapp_db_1 ... done
Starting myapp_app_1 ... done
Attaching to myapp_db_1, myapp_app_1
db_1   | [i] mysqld already present, skipping creation
db_1   | [i] MySQL data directory not found, creating initial DBs
db_1   | 2020-03-20  9:40:12 0 [ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 0 pages than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
db_1   | 2020-03-20  9:40:12 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
app_1  | ERROR 2002 (HY000): Can't connect to MySQL server on 'db' (115)
app_1  | MySQL is unavailable - sleeping
db_1   | 2020-03-20  9:40:14 0 [ERROR] Plugin 'InnoDB' init function returned error.
db_1   | 2020-03-20  9:40:14 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
db_1   | 2020-03-20  9:40:14 0 [ERROR] Unknown/unsupported storage engine: InnoDB
db_1   | 2020-03-20  9:40:14 0 [ERROR] Aborting

It does this a few times, then repeats this message until stopped:

app_1  | ERROR 2002 (HY000): Can't connect to MySQL server on 'db' (115)
app_1  | MySQL is unavailable - sleeping
app_1  | ERROR 2002 (HY000): Can't connect to MySQL server on 'db' (115)
app_1  | MySQL is unavailable - sleeping
app_1  | ERROR 2002 (HY000): Can't connect to MySQL server on 'db' (115)
app_1  | MySQL is unavailable - sleeping

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.