summaryrefslogtreecommitdiff
path: root/lib/leap_cli/log.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/log.rb')
-rw-r--r--lib/leap_cli/log.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/leap_cli/log.rb b/lib/leap_cli/log.rb
index fe9e1b7..af2fae7 100644
--- a/lib/leap_cli/log.rb
+++ b/lib/leap_cli/log.rb
@@ -131,6 +131,9 @@ module LeapCli
#
# set line prefix
#
+ if (host)
+ host = host.split('.').first
+ end
prefix = prefix_str(host, title)
#