yougov / mongo-connector

MongoDB data stream pipeline tools by YouGov (adopted from MongoDB)
Apache License 2.0
1.88k stars 478 forks source link

No handlers could be found for logger "elasticsearch.trace" #452

Open zerubeus opened 8 years ago

zerubeus commented 8 years ago

can any one help me with this ? I just started:

mongo-connector -m serverIP:27017 -t localhost:9200 -d elastic2_doc_manager -v

what I get :

Logging to mongo-connector.log.
No handlers could be found for logger "elasticsearch.trace"

stderr :

2016-05-20 19:16:25,486 [ERROR] mongo_connector.oplog_manager:634 - OplogThread: Failed during dump collection cannot recover! Collection(Database(MongoClient(host=['myServerIP:27017'], document_class=dict, tz_aware=False, connect=True, replicaset=u'rs0'), u'local'), u'oplog.rs')
2016-05-20 19:16:25,486 [DEBUG] mongo_connector.oplog_manager:208 - OplogThread: Last entry is the one we already processed.  Up to date.  Sleeping.
2016-05-20 19:16:25,620 [ERROR] mongo_connector.connector:303 - MongoConnector: OplogThread <OplogThread(Thread-2, started 139954695808768)> unexpectedly stopped! Shutting down
2016-05-20 19:16:25,621 [INFO] mongo_connector.connector:360 - MongoConnector: Stopping all OplogThreads
2016-05-20 19:16:25,621 [DEBUG] mongo_connector.oplog_manager:371 - OplogThread: exiting due to join call.
llvtt commented 8 years ago

"No handlers could be found for logger" means that there isn't anything receiving any of the log messages from the Elastic Python driver's logger called elasticsearch.trace. This isn't a problem in itself, it just makes it more difficult to see log messages from the Elastic Python driver.

mongo-connector should still be capable of logging messages into its own log file, despite the above.

parag90-zz commented 7 years ago

I am facing this same issue