Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-25663 debugging does not print html any more in CLI mode

  • Loading branch information...
commit 2df1126b2d751f36f8aa4e62cade8df4253029eb 1 parent 883deb3
Petr Skoda skodak authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 lib/weblib.php
6 lib/weblib.php
@@ -2849,7 +2849,11 @@ function debugging($message = '', $level = DEBUG_NORMAL, $backtrace = null) {
2849 2849 if (!defined('DEBUGGING_PRINTED')) {
2850 2850 define('DEBUGGING_PRINTED', 1); // indicates we have printed something
2851 2851 }
2852   - echo '<div class="notifytiny">' . $message . $from . '</div>';
  2852 + if (CLI_SCRIPT) {
  2853 + echo "++ $message ++\n$from";
  2854 + } else {
  2855 + echo '<div class="notifytiny">' . $message . $from . '</div>';
  2856 + }
2853 2857
2854 2858 } else {
2855 2859 trigger_error($message . $from, E_USER_NOTICE);

0 comments on commit 2df1126

Please sign in to comment.
Something went wrong with that request. Please try again.