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

FKITDEV-2587: debug connection url #53

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jurki
Copy link

@jurki jurki commented Jan 25, 2024

Hasznos lenne, ha tudnánk, hogy melyik rabbitmq-hoz nem sikerült csatlakozni.

Javaslom, hogy a QueueConnection-ben a csatlakozás sikertelensége esetén írjuk ki, hogy melyik url-hez való csatlakozáskor történt a hiba.

https://youtrack.techteamer.com/issue/FKITDEV-2587/RabbitMQ-csatlakozasi-hiba-debug

@elgeri elgeri requested review from elgeri and bencelaszlo May 9, 2024 08:51
const connection = await amqp.connect(configUrl, options)
this._activeConnectionConfig = connectionUrl
return connection
try{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: a try mögül hiányzik egy szóköz.

return connection
} catch (error) {
this._logger.error('RabbitMQ connection failed to host:', { ...connectionUrl, password: connectionUrl.password ? '***' : connectionUrl.password })
throw new Error('RabbitMQ connection failed with single url')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ez így pontosan azt csinálja, mint a _connectWithMultipleUrls, ami jó, csak elkerülhetnénk a dupla karbantartását ugyanannak a logikának, ha a konfigból mindenképpen létrehoznánk egy tömböt és inline-olnánk ide a _connectWithMultipleUrls-t.

@jurki jurki requested a review from bencelaszlo May 14, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants