Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Mar 17, 2017
1 parent f705a62 commit 1d8b995
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/TailCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1d8b995

Please sign in to comment.