Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 from iseazy/feature/mperez/absolute-path-log
Browse files Browse the repository at this point in the history
feat(filename): make filename an absolute path
  • Loading branch information
dmoreno authored Feb 22, 2018
2 parents 66000e5 + 4d571aa commit d2fcf44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/SegmentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ public function boot()
$this->setupConfig();

if ($writeKey = $this->app->config->get('segment.write_key')) {
Segment::init($writeKey, $this->app->config->get('segment.init_options'));
$initOptions = $this->app->config->get('segment.init_options');

if (array_key_exists('filename', $initOptions)) {
$initOptions['filename'] = base_path($initOptions['filename']);
}

Segment::init($writeKey, $initOptions);
}
}

Expand Down

0 comments on commit d2fcf44

Please sign in to comment.