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

Network Health - Made log message more clear #4425

Merged
merged 3 commits into from
Jun 22, 2016
Merged

Network Health - Made log message more clear #4425

merged 3 commits into from
Jun 22, 2016

Conversation

gumulka
Copy link
Contributor

@gumulka gumulka commented Jun 1, 2016

Previuosly the log message always stated, that a host is reachable, independent of the return code of the checkVitality function.
This could lead to confusion in trying to debug on error.
Also reformated a log message to fit into the general design of the package.

Previuosly the log message always stated, that a host is reachable, independent of the return code of the checkVitality function.
This could lead to confusion in trying to debug on error.
Also reformated a log message to fit into the general design of the package.
logger.debug("established connection [host '{}' port '{}' timeout '{}']",
new Object[] { hostname, port, timeout });
else
logger.debug("couldn't established connection [host '{}' port '{}' timeout '{}']",
Copy link
Contributor

Choose a reason for hiding this comment

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

Small grammar fix here: "couldn't established" should say "couldn't establish".

logger.debug("established connection [host '{}' port '{}' timeout '{}']",
new Object[] { hostname, port, timeout });
else
logger.debug("couldn't establish connection [host '{}' port '{}' timeout '{}']",
Copy link
Member

Choose a reason for hiding this comment

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

please use curly braces (even with one liners)

@gumulka
Copy link
Contributor Author

gumulka commented Jun 3, 2016

This might fix #4245, but i don't know how to connect the two.

@9037568 9037568 merged commit 359e35c into openhab:master Jun 22, 2016
@9037568
Copy link
Contributor

9037568 commented Jun 22, 2016

Thanks, @gumulka!

cdjackson added a commit to cdjackson/openhab1-addons that referenced this pull request Aug 12, 2016
* master: (178 commits)
  Fix the generateDeviceId method. (openhab#4498)
  [modbus] Add support for int32_swap, uint32_swap and float32_swap data types (openhab#4251)
  Extend error logging on retry failure (openhab#4477)
  Changed timestamp of item insert from MySql server time to local Java… (openhab#4503)
  [mochadx10] Add binding to OH2 distro (openhab#4502)
  [mqtt] Add openhab-action-mqtt feature for OH2 install (openhab#4499)
  ZWave database update (openhab#4497)
  Fixes openhab#1003 (openhab#4162)
  [WeatherBinding] Add log messages for invalid configurations (openhab#4458)
  Network Health - Made log message more clear (openhab#4425)
  Update ZMNHSD (openhab#4490)
  Update clock command class and converter (openhab#4489)
  Updated modbus config template with serial example. Documented advanced connection parameters (openhab#4487)
  ZWave update WA105DBZ (openhab#4485)
  Zwave database 180616 (openhab#4483)
  Zwave database 180616 (openhab#4479)
  Add Aeon ZW112 - Door/Window Sensor 6 (openhab#4472)
  Include Aeon ZW112 - Door/Window Sensor 6 (openhab#4471)
  Z-Wave: Added support for CENTRAL_SCENE (openhab#4431)
  ZWave database update (openhab#4476)
  ...

# Conflicts:
#	bundles/binding/org.openhab.binding.zwave/database/products.xml
#	bundles/binding/org.openhab.binding.zwave/src/main/java/org/openhab/binding/zwave/internal/converter/ZWaveConverterHandler.java
#	bundles/binding/org.openhab.binding.zwave/src/main/java/org/openhab/binding/zwave/internal/protocol/commandclass/ZWaveCommandClass.java
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants