From 0f282588f0deca65e1720b40177c67a42246ef85 Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 15 Aug 2016 20:36:45 -0700 Subject: log short host names --- lib/leap_cli/log.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/leap_cli') 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) # -- cgit v1.2.3