Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <matt@piwik.org>2014-12-02 03:34:25 +0300
committerMatthieu Aubry <matt@piwik.org>2014-12-02 03:34:25 +0300
commita0d3bf94837642edafda458546497d703843854b (patch)
treeae558a78dc7488c3fc229889ac403ba757dce3e6 /plugins/CoreConsole
parent03165a76526de6b537f64c5953e927b50a0ab18a (diff)
parent4a2145a1a7fd21cefb7d79e83f3416027c251c0a (diff)
Merge pull request #6658 from piwik/tmp-path
Moved the `tmp/` path into the config (was hardcoded everywhere)
Diffstat (limited to 'plugins/CoreConsole')
-rw-r--r--plugins/CoreConsole/Commands/WatchLog.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/CoreConsole/Commands/WatchLog.php b/plugins/CoreConsole/Commands/WatchLog.php
index f6dd3bba5f..d2b650726c 100644
--- a/plugins/CoreConsole/Commands/WatchLog.php
+++ b/plugins/CoreConsole/Commands/WatchLog.php
@@ -9,8 +9,8 @@
namespace Piwik\Plugins\CoreConsole\Commands;
+use Piwik\Container\StaticContainer;
use Piwik\Plugin\ConsoleCommand;
-use Piwik\SettingsPiwik;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@@ -26,8 +26,7 @@ class WatchLog extends ConsoleCommand
protected function execute(InputInterface $input, OutputInterface $output)
{
- $path = sprintf('%s/tmp/logs/', PIWIK_DOCUMENT_ROOT);
- $path = SettingsPiwik::rewriteTmpPathWithInstanceId($path);
+ $path = StaticContainer::getContainer()->get('path.tmp') . '/logs/';
$cmd = sprintf('tail -f %s*.log', $path);
$output->writeln('Executing command: ' . $cmd);