From 1d8b995c51bb3a125ab44b5936818a5ac4be0b23 Mon Sep 17 00:00:00 2001 From: freek Date: Fri, 17 Mar 2017 09:01:42 +0100 Subject: [PATCH] commit --- CHANGELOG.md | 3 +++ src/TailCommand.php | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d7cec1..354798a 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to `laravel-tail` will be documented in this file +### 1.4.1 - 2016-03-17 +- fix backwards compatibility issue when `port` is not set in config file + ### 1.4.0 - 2016-03-16 - add `port` to config file diff --git a/src/TailCommand.php b/src/TailCommand.php index dd4079a..9da45e0 100755 --- a/src/TailCommand.php +++ b/src/TailCommand.php @@ -75,9 +75,9 @@ protected function tailRemoteLogFile($connection) { $connectionParameters = config('tail.connections.'.$connection); - if (isset($connectionParameters['port'])) { - $portCommand = "-p {$connectionParameters['port']}"; - } + $portCommand = isset($connectionParameters['port']) + ? "-p {$connectionParameters['port']}" + : ''; $this->guardAgainstInvalidConnectionParameters($connectionParameters);