Skip to content

Instantly share code, notes, and snippets.

View barbanet's full-sized avatar

Damián Culotta barbanet

View GitHub Profile
@davidalger
davidalger / patches--ConsoleLogger-Prefix.patch
Created June 2, 2020 22:43
Prefixes logging output of Magento 2 database upgrade CLI commands with timestamp in HH:MM:SS format
--- webroot/vendor/magento/framework/Setup/ConsoleLogger.php 2020-06-02 17:09:24.000000000 -0500
+++ webroot/vendor/magento/framework/Setup/ConsoleLogger.php 2020-06-02 17:23:51.000000000 -0500
@@ -67,7 +67,7 @@
public function log($message)
{
$this->terminateLine();
- $this->console->writeln('<detail>' . $message . '</detail>');
+ $this->console->writeln('<detail>' . $this->logPrefix() . $message . '</detail>');
}
@ProcessEight
ProcessEight / Testing in Magento 2.md
Last active February 11, 2025 09:03
M2: Notes on setting up PHPUnit and writing/troubleshooting tests in Magento 2