Git Product home page Git Product logo

Comments (5)

char0n avatar char0n commented on August 17, 2024 1

Will do. Thanks.

I will close this issue after README is updated.

from log4mongo-python.

char0n avatar char0n commented on August 17, 2024

@oz123 any idea ? I don't see any reason why this should not work.

from log4mongo-python.

sreecodeslayer avatar sreecodeslayer commented on August 17, 2024

Hey, I got it to work

When I checked the Pymongo doc, it says we can pass uri in to host.

The host parameter can be a full mongodb URI, in addition to a simple hostname. It can also be a list of hostnames or URIs.

So instead of giving username, password separately, i gave it like this,

handler = MongoHandler(host='mongodb://username:password@localhost:27045')

and everything remains same, and I can confirm I have log data in the collection, so i guess it is better to mention this in the README for others who is using Auth 🙂 👍

from log4mongo-python.

char0n avatar char0n commented on August 17, 2024

Still pending..

from log4mongo-python.

lamter avatar lamter commented on August 17, 2024

It happended to me and I guess I found the reason.
It happens in MongoHandler._connect meth. For a database need auth, connect.is_locked should be call after auth.But, it adverses.
It will be normal at no-auth situation, but not at auth need.

from log4mongo-python.

Related Issues (20)

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.