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
AgeCommit message (Collapse)Author
2022-03-10[Codingstyle] Disallow unused use statements (#18520)Stefan Giehl
* Forbid unused use statements * Fix some incorrect classnames * fix tests * remove unused use statements
2021-11-22Allow console logging to file if configured (#18358)Ben Burgess
* Add file logging to console log handlers if enabled in config * Remove unnecessary return array_values
2021-08-24Use Monolog:SyslogHandler syslog default facility (#17855)mwithheld
* Add log handlers syslog and errorlog Issue#9400 * Add log handlers syslog and errorlog * syslog/errorlog: fix namespace; add log.syslog.ident * syslog/errorlog: Document options * ErrorLogHandler constructor: Avoid null Avoid null in ErrorLogHandler constructor call: Use level param; default others * missing comma * fix two di definitions * Use Monolog constructor-default facility Issue #17764 * #17855 SyslogHandler: Fix typo * Update plugins/Monolog/config/config.php Co-authored-by: diosmosis <diosmosis@users.noreply.github.com> Co-authored-by: root <root@127.0.0.1>
2021-08-17Run AllTests on PHP8 (#16897)Stefan Giehl
* Run AllTests on PHP8 * use newer phpunit for tests on PHP8 * fix notices/errors * handle trace of phpunit 9 * ensure to compare same types for range check * adjust expected result for php8 * try handling hasDependencies does not exist in PHPUnit 9 * fix: ArgumentCountError: mysqli_stmt::bind_param() does not accept unknown named parameters * Fix usercountry tests * remove incorrect date check * fix expected exception message * fix referrers api test for php8 * add test hint * try to fix session related tests * debug test failure * try to fix mail tests * fix filterUser method * exlucde phpunit from build size calculation * fix scheduled reports test * update release checklist test * unset climode * improves some tests
2021-08-12avoid large amounts of notifications being added to the session (#17736)dizzy
* impose limit on notification message size when logging to notifications * if in memory notification count exceeds max notification size in session, do not attempt to new ones it to the session * Detect when session was too large to read and provide warning to user. * add some tests for Notification\ManagerTest.php * add tests for relevant DbTable members * Change session data column type to allow larger session data values. * update to rc3 * trigger new build? * fix namespace * fix test namespaces * bump version correctly
2021-07-18Add log handlers syslog and errorlog (#17764)mwithheld
* Add log handlers syslog and errorlog Issue#9400 * Add log handlers syslog and errorlog * syslog/errorlog: fix namespace; add log.syslog.ident * syslog/errorlog: Document options * ErrorLogHandler constructor: Avoid null Avoid null in ErrorLogHandler constructor call: Use level param; default others * missing comma * fix two di definitions Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
2021-07-11Revert "Add log handlers syslog and errorlog (#17745)" (#17753)dizzy
This reverts commit 288c07e4fc6487c88e41c054876f60badc1cde2c.
2021-07-11Add log handlers syslog and errorlog (#17745)mwithheld
Issue#9400
2021-06-28Add some context to this error since logs will not have the host or instance ↵dizzy
or other information. (#17472) * Add some context to this error since logs will not have the host or instance or other information. * Move context addition to ExceptionToTextProcessor. * fix some tests
2021-03-25allow forcing backtrace to print in exceptiontotextprocessor (#17369)dizzy
* Allow forcing backtrace to print and do not print redundant message in exceptiontotextprocessor * fix test * consistent output when exception is an array * fix tests * fix another test
2020-11-18Only assume important log encountered when log level is >= WARN (#16735)Thomas Steur
2020-11-04require PIWIK_PRINT_ERROR_BACKTRACE for exception backtraces in logs (#16640)diosmosis
* require PIWIK_PRINT_ERROR_BACKTRACE for exception backtraces in logs * consolidate uses of getTraceAsString to use single method where possible which always checks if should print stacktrace * replace sensitive values and add some tests * apply more review comments * another tweak * remove backtrace omitted error * fix test * fix test for travis * fix test
2020-09-03Updates php-di to 6.2.1 (#16311)Stefan Giehl
2020-04-24Update doc blocks with new name (#15857)Stefan Giehl
* update doc blocks with new name * submodule updates * updates expected UI files
2020-04-17Prevent possible notice and hiding actual error in debug trace (#15818)Thomas Steur
* Prevent possible notice and hiding actual error in debug trace refs https://forum.matomo.org/t/empty-or-invalid-response-php-notice-undefined-index-class-when-archiving/36908/2 * Update plugins/Monolog/Formatter/LineMessageFormatter.php Co-Authored-By: Stefan Giehl <stefan@matomo.org> Co-authored-by: Stefan Giehl <stefan@matomo.org>
2020-03-16Merge branch '3.x-dev' into 4.x-devsgiehl
2020-03-10Move Archive.php archive invalidation to Loader… (#15616)3.13.4-b1diosmosis
* Move Archive.php archive invalidation to Loader so we only invalidate when about to launch archiving. * Attempt to handle more cases when invalidating before launching archiving. * fix possible sql error * fix possible error * fixing some tests * remove test code * Only invalidate specific archive being requested. * Do not invalidate on today in tracker and avoid existing valid archive check in CronArchive. * more test fixes * Attempt to fix more tests. * Fixing last tests. * another test fix * Invalidate in scheduled task if browser triggered archiving is enabled. * deal with TODO * Get ArchiveSelectorTest to pass. * applying review feedback including new tests * apply review feedback & fix tests * fix couple more tests Co-authored-by: Thomas Steur <tsteur@users.noreply.github.com>
2020-02-27Update to PHPUnit 8.5 (#15581)Stefan Giehl
* use latest phpunit/phpunit ~8.5 * submodule updates * fixes
2020-02-11Use \PHPUnit\FrameWork\TestCase instead of \PHPUnit_Framework_TestCase (#15554)Stefan Giehl
2020-01-28Use rebranded components (#15253)Stefan Giehl
2020-01-15Remove some no longer needed code (#15391)Thomas Steur
2020-01-01Fix build (#15334)diosmosis
* test no longer relevant * update submodule * fix integration test * Do not forward query params for Goals.getMetrics inner API call.
2019-12-21In EchoHandler print out formatted message, not just level and message. (#15298)diosmosis
2019-12-10tracker debug fixes in CLI command + extra logs for Lock (#15197)diosmosis
2019-11-18Invert change comparison when displaying percents in the UI … (#15098)diosmosis
* Invert change comparison when displaying percents in the UI, and add extra _change_from metric to support API calculation of from change percent when there are more than two periods. * Update bandwidth submodule * update screenshots * Update tests. * Update screenshot.
2019-11-05Fix possible notice in lineMessageFormatter when trace has less than 10 ↵Thomas Steur
records (#15105)
2019-10-16Fix web cron returns an error when archiving (#15014)Thomas Steur
refs https://github.com/matomo-org/matomo/issues/15012
2019-10-10Log stack traces for PHP warnings etc (#14961)Kate Butler
* Allow stack traces to be logged to file for PHP warnings * Use debug_backtrace() to generate an abbreviated stack trace * Change trace format, fix LogTest * smaller trace by not including unimportant doc root makes it also easier for users to share the trace since they don't need to remove any paths * Update ErrorHandler.php
2019-10-01Replace some usages of Common::printDebug w/ use of logger (#13968)diosmosis
* Start refactoring Common::printDebug(). * Make tracker debug statement error log. * Remove logger removal for tracker. * Fix test failure. * Add two more parent constructor calls. * Fix failing test
2019-08-17Add some debugging info to log notifications so they can be more easily ↵diosmosis
reproduced. (#14753) * Add some debugging info to log notifications so they can be more easily reproduced. * Only put debugging info if piece of info is present.
2019-08-16Do not record the trace for user input errors (#14771)Thomas Steur
2019-07-05Update the link tag for all php files (#14635)Luca
I updated the link tag for all php files with the new matomo link. Not sure if it is realistic that this will get merged but I though that someday someone has to do this(?)
2019-04-01Fixing build (#14296)diosmosis
* fix condition * NullHandler must be end of writer array to allow other handlers to handle the message (since it seems to stop bubbling). * Do not do php eol check during tests. * Just in case. * try to fix the build * Add screenshot.
2019-03-20Make sure Monolog never adds its default handler. (#14239)diosmosis
2019-02-18Enable fingers crossed handler via INI config and show backtrace in ↵diosmosis
logs/archive api output (#13923) * Add config to use FringersCrossedHandler (untested) * Get to work in different contexts. * Add changelog note. * Make sure more exceptions make it to the logs, make backtrace include previous exceptions, do not use screen writer if in cli mode, always print backtrace if in CLI mode and archivephp triggered. * Add log capturing handler. * Remove options from global.ini.php sibnce they may be temporary. * Add UI test triggering an error w/ the screen handler. * Add some more log statements, ignore logs in screen writer, replace part of message in ExceptionToTextProcessor instead of whole message. * Add missing license. * Update changelog, move new item to 3.9 * Fixing some integration tests. * Fix another unit test. * One more test fix. * Try to get rid of xss testing warning. * Try again to get rid of warning. * Try again to get rid of warning. * Try again to get rid of warning.
2019-01-29Set isHtmlMessage for more exceptions. (#14024)diosmosis
* Set isHtmlMessage for more exceptions. * Escaping file names.
2018-12-19Add generated unique request ID used in logs as custom HTTP header. (#13874)diosmosis
* Add generated unique request ID used in logs as custom HTTP header. * Fixing tests.
2018-12-19Allow setting different log levels per log writer if desired. (#13873)diosmosis
* Set different log levels per log writer if desired. * small tweak * tweak doc
2018-09-06Add [tests] config option to enable logging in tests. (#13335)diosmosis
* Add [tests] config option to enable logging in tests. * Allow tests:run/tests:run-ui commands to enable logging for individual runs + during tests only log to file. * Remove Fixture field * fix failing test * fixing build * Fix another failure. * Fix an other test.
2018-08-11If warning/error log detected in console command exit w/ code = 1. (#13275)diosmosis
2018-08-01Add some simple profiling output to core:archive command (#13215)diosmosis
* Initial code to gather performance measurements across processes. * Get proof of concept to work. * couple tweaks * Modified to use a custom log file instead of option table. * add peak memory value
2018-04-12Log a job ID for cli commands (#12717)Thomas Steur
* log requestId for cli commands * format console log * log pid for cli commands * fix test
2018-01-11Show Matomo instead of Piwik in the user interface in more places (#12421)Matthieu Aubry
* Replace all occurences of Piwik in english translations of Actions plugin * translation update * Replace all occurences of Piwik in english translations of API plugin * translation update * Replace all occurences of Piwik in english translations of core * replace Piwik occurrences * Rename widget piwik.org blog => matomo.org blog * fix widget name * replaced some more piwik mentions * Renamed to Matomo a few strings * Replaced more strings to Matomo in JSON files, twig templates * Replaced more strings to Matomo in INI file * Replaced more strings to Matomo in API docs, error messages, feedback forms * introduce API.getMatomoVersion and ExampleAPI.getMatomoVersion API + deprecate old ones
2017-10-04force using utf-8 as charset for htmlentities/htmlspecialchars (#12135)Stefan Giehl
2017-07-25write timezone (in our case: always "UTC") in log messages (#11893)Patrick Brosi
* write timezone (in our case: always "UTC") in log messages * use 'T' instead of 'e' in LineMessageFormatter
2016-01-13Archive in UITestFixture using correct test environment overrides ↵diosmosis
(loadRealTranslations=1 is needed for archiving) so results are accurate. Also, do not use Fixture::getTestEnvironment() in fixtures, instead create new instances of TestingEnvironmentVariables so changes made to the file are not ignored/lost.
2015-11-24refs #9129 added feature Custom DimensionsThomas Steur
2015-09-22Attempt to fix build.diosmosis
2015-09-22Split multi-line log messages into multiple log messages if file handlerThomas Steur
is used
2015-08-19simplify definitionThomas Steur