mjalas / messaging-client

A simple message transport application.
MIT License
0 stars 1 forks source link

Move printMessage function parameter to a --debug flag or environment variable #8

Closed Tebro closed 8 years ago

Tebro commented 8 years ago

Currently some functions in the MessagingClient class take a "printMessage" parameter. This would be better as a global setting configured either via a runtime flag or environment variable.

To further improve different log levels could be implemented.

mjalas commented 8 years ago

Adding a 'debug' mode should fix that, and different levels could also be a good thing to think about. However, the levels at this point would be to over engineer it.

mjalas commented 8 years ago

Added a debug command line option, to fix the issue.