Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connectPool log options ignored ? #114

Open
ptorrent opened this issue Jan 25, 2023 · 3 comments
Open

connectPool log options ignored ? #114

ptorrent opened this issue Jan 25, 2023 · 3 comments
Labels
question Further information is requested

Comments

@ptorrent
Copy link

Hello !

I'm trying to print some log but it seems that the options "log" is ignored.

r.connectPool({
	silent	: false,
	waitForHealthy: true,
	servers	: targetServers,
	buffer	: 300,
	log 		: function(){
			console.error(arguments)
	},
	max		: 3000
});

Am I doing someting wrong ?

@ptorrent ptorrent added the bug Something isn't working label Jan 25, 2023
@atassis
Copy link
Collaborator

atassis commented Jan 26, 2023

What kind of log do you expect? There was no logic in the log from start, as I understand, the only thing log does is outputting the error from reportError method

@atassis atassis added question Further information is requested and removed bug Something isn't working labels Jan 26, 2023
@atassis
Copy link
Collaborator

atassis commented Jan 26, 2023

And please, there is a label for questions, use it instead of a bug label

@ptorrent
Copy link
Author

Sorry for the label !

The fact is the pool is disconnect after ~30 minutes.And it seems that I'm not able to connect to rethinkdb db again. I've to restart the module.. Looks like the pool is down and not able to reconnect again.

With rethinkdbdash I didn't have this issue. Actually running on 4 servers in clusters

You're right the log property is not very useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants