Changeset 122463 in spip-zone


Ignore:
Timestamp:
Feb 13, 2020, 7:40:08 PM (6 months ago)
Author:
jluc@…
Message:

on loge mieux les éventuels cachelab_slow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/cachelab/trunk/inc/cachelab.php

    r122459 r122463  
    334334        }
    335335        if (defined('LOG_CACHELAB_SLOW') and ($stats['chrono']  > LOG_CACHELAB_SLOW)) {
    336                 spip_log($msg, 'cachelab_slow.'._LOG_INFO_IMPORTANTE);
     336                if (function_exists ('debug_log')) {
     337                        debug_log ($msg, 'cachelab_slow', true);
     338                }
     339                else {
     340                        spip_log ($msg, 'cachelab_slow.' . _LOG_INFO_IMPORTANTE);
     341                }
    337342        }
    338343        if (($action=='del') and defined('LOG_CACHELAB_TOOMANY_DEL') and ($stats['nb_cible']  > LOG_CACHELAB_TOOMANY_DEL)) {
Note: See TracChangeset for help on using the changeset viewer.