mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
18 lines
355 B
PHP
18 lines
355 B
PHP
![]() |
<?php
|
||
|
|
||
|
function debug_message($message)
|
||
|
{
|
||
|
if (sfConfig::get('sf_web_debug'))
|
||
|
{
|
||
|
sfWebDebug::getInstance()->logShortMessage($message);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function log_message($message, $priority = 'info')
|
||
|
{
|
||
|
if (sfConfig::get('sf_logging_enabled'))
|
||
|
{
|
||
|
sfContext::getInstance()->getLogger()->log($message, constant('SF_LOG_'.strtoupper($priority)));
|
||
|
}
|
||
|
}
|