Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improved logging in htoad_host

  • Loading branch information...
commit b09d7ae0a0904596fddda1aebafef017d781fde1 1 parent 573dfe3
Yurii Rashkovskii authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 apps/htoad/src/htoad_host.erl
5 apps/htoad/src/htoad_host.erl
View
@@ -8,7 +8,6 @@
-rules([init, init_with_hostname_overriden, linux]).
init_with_hostname_overriden(Engine, #init{}, {htoad_argument, {host, Hostname}}) ->
- lager:debug("Overriding host name to ~s",[Hostname]),
initialize(Engine, Hostname).
init(Engine, #init{}) when not {rule, [{htoad_argument, {host, _}}]} ->
@@ -38,6 +37,10 @@ initialize(Engine, Hostname) ->
{operating_system_type, OsFamily},
{operating_system_name, OsName},
{operating_system_version, OsVersion}]),
+ lager:debug("Hostname: ~s",[Hostname]),
+ lager:debug("Operating system type: ~p",[OsFamily]),
+ lager:debug("Operating system name: ~p",[OsName]),
+ lager:debug("Operating system version: ~p",[OsVersion]),
lager:debug("Initialized htoad_host"),
Engine1.
Please sign in to comment.
Something went wrong with that request. Please try again.