c

    chilly-barista-6524

    1 year ago
    Hey everyone I am trying to get all the logs for datahub.. following this documentation : https://github.com/grofers/datahub/blob/master/docs/docker/development.md I tried enabling debugging, but I am getting this in the docker desktop dashboard logs :
    DefaultTaskDescriptor
    log4j:WARN No appenders could be found for logger (com.linkedin.restli.docgen.VelocityTemplatingEngine).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See <http://logging.apache.org/log4j/1.2/faq.html#noconfig> for more info.
    Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
    Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
    Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
    Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
    Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
    Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expected >JDWP-Handshake<
    Am I missing anything? I want to get all the logs and not just the error logs..
    e

    enough-house-33388

    1 year ago
    @microscopic-receptionist-23548 has more experiences in this and might be able to help you.
    m

    microscopic-receptionist-23548

    1 year ago
    which container?
    c

    chilly-barista-6524

    1 year ago
    this one is for
    datahub-gms
    All though I would like to have logs for all the services
    @microscopic-receptionist-23548 anything on this?
    m

    microscopic-receptionist-23548

    1 year ago
    you should be able to see all the logs via docker desktop
    if you open that, find the running container, and just double click it, you should see the logs
    By default log4j has some "level" of messages; I think warning or error. I'm not sure off the top of my head how to configure those, especially without recompiling (even then, these jars are started by docker; so you'd have to probably rebuild the images unless it is accessible via environment variable)
    I'm not sure what your issue here is; wanting to see some other container or wanting to see lower level messages like info / debug. If the latter I'm not a log4j expert; google would know more in this case 🙂