Skip to content

Commit

Permalink
Log::dt was occasionally creating --ms values of arrays after a merge…
Browse files Browse the repository at this point in the history
…, which is incorrect
  • Loading branch information
enobrev committed Oct 4, 2018
1 parent 7acf7dd commit f6fd35d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ public static function em($sMessage, array $aContext = array()) {
* @param array $aContext
*/
public static function dt(TimeKeeper $oTimer, array $aContext = []): void {
self::d($oTimer->label(), array_merge($aContext, ['--ms' => $oTimer->stop()]));
$aContext['--ms'] = $oTimer->stop();
self::d($oTimer->label(), $aContext);
}

/**
Expand Down

0 comments on commit f6fd35d

Please sign in to comment.