Skip to content

Fix: Added log to roger#6

Open
andrecavallari wants to merge 1 commit into
masterfrom
fix/log
Open

Fix: Added log to roger#6
andrecavallari wants to merge 1 commit into
masterfrom
fix/log

Conversation

@andrecavallari
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread lib/roger/setup.rb
payload = Payload.new(body, properties, info)
Roger.routes[consumer_key].consumer.new(payload).process

log = ["[ i ] #{info[:consumer].queue.name} received a message"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nesse caso acho que seria necessário colocar no config se queremos ou não fazer esse log de todas as mensagens que recebemos, temos o logger para dar output de forma programática. Porém se quisermos ativar poderíamos colocar algo para o config saber que queremos estar dando output de cada payload recebido.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

A config estou ajustando em outro PR, depois poderemos remover, poderemos ter um config file...

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.

2 participants