Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Fritzbox Binding log message #881 #1482

Merged
merged 3 commits into from
Oct 14, 2014
Merged

Fritzbox Binding log message #881 #1482

merged 3 commits into from
Oct 14, 2014

Conversation

mod42
Copy link
Contributor

@mod42 mod42 commented Sep 29, 2014

Telnet connection is now only opened if a password is set and if there
is an item configured which uses the telnet connect on the standard
port. Annoying warning message is not sent anymore.

mod42 and others added 2 commits September 29, 2014 21:45
Telnet connection is now only opened if a password is set and if there
is an item configured which uses the telnet connect on the standard
port.
@mod42 mod42 changed the title Fix for #881 Fritzbox Binding log message #881 Sep 29, 2014
@@ -145,7 +145,8 @@ public void deactivate() {
@Override
public void internalReceiveCommand(String itemName, Command command) {

if (password != null) {
if (password != null && !password.isEmpty()) {
logger.warn("Fritzbox password: "+password);
Copy link
Member

Choose a reason for hiding this comment

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

passwords should usually better not appear in log files - and it also makes no sense to have it as a warning.
I'd suggest to either remove it or reduce to DEBUG level.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh man. Forgot to remove the logging. Sorry.

@kaikreuzer
Copy link
Member

Thanks! Could you possibly also run the code formatter over this class? There are a couple of spaces missing etc. to make the code conform to the formatting guidelines.

@mod42
Copy link
Contributor Author

mod42 commented Sep 29, 2014

Is there a special openhab formating profile for cleanup in eclipse ?

@mod42
Copy link
Contributor Author

mod42 commented Sep 29, 2014

Found the formatting hint in the wiki :-)

@buildhive
Copy link

openhab » openhab #1255 SUCCESS
This pull request looks good
(what's this?)

@teichsta
Copy link
Member

teichsta commented Oct 5, 2014

Hi @mod42 i will merge this PR as soon as the password logging has been removed. Best, Thomas E.-E.

@buildhive
Copy link

openhab » openhab #1338 SUCCESS
This pull request looks good
(what's this?)

teichsta added a commit that referenced this pull request Oct 14, 2014
Fritzbox Binding log message #881
@teichsta teichsta merged commit bf9cd3d into openhab:master Oct 14, 2014
@teichsta
Copy link
Member

thanks @mod42

johgoe pushed a commit to johgoe/openhab that referenced this pull request Jan 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants