Improve record_log() : use noalyss/log and apache log
This commit is contained in:
parent
59ab697bb7
commit
169820ae43
22 changed files with 35 additions and 34 deletions
|
|
@ -33,7 +33,7 @@ try
|
|||
catch (Exception $exc)
|
||||
{
|
||||
echo $exc->getMessage();
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
return;
|
||||
}
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ try
|
|||
catch (Exception $exc)
|
||||
{
|
||||
echo $exc->getMessage();
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
return;
|
||||
}
|
||||
/*
|
||||
|
|
@ -152,4 +152,4 @@ echo <<<EOF
|
|||
<code>$html</code>
|
||||
</data>
|
||||
EOF;
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ try
|
|||
catch (Exception $exc)
|
||||
{
|
||||
echo $exc->getMessage();
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ if ($op=='folder_add') // operation
|
|||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
$content=_('Erreur paramètre');
|
||||
$status="NOK";
|
||||
return;
|
||||
|
|
@ -104,7 +104,7 @@ if ($op=='folder_remove') // operation
|
|||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
$content=_('Erreur paramètre');
|
||||
$status="NOK";
|
||||
}
|
||||
|
|
@ -166,7 +166,7 @@ if ($op=='folder_display') // operation
|
|||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
$content=_('Erreur paramètre');
|
||||
$status="NOK";
|
||||
}
|
||||
|
|
@ -200,7 +200,7 @@ if (in_array($op, array('modele_drop', 'modele_modify', 'folder_modify', 'folder
|
|||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
$content=_('Erreur paramètre');
|
||||
$status="NOK";
|
||||
//----------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ try
|
|||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -60,4 +60,4 @@ echo <<<EOF
|
|||
<code>$html</code>
|
||||
</data>
|
||||
EOF;
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ try
|
|||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -71,4 +71,4 @@ echo <<<EOF
|
|||
<code>$html</code>
|
||||
</data>
|
||||
EOF;
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ try
|
|||
catch (Exception $exc)
|
||||
{
|
||||
echo $exc->getMessage();
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
return;
|
||||
}
|
||||
ob_start();
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ try
|
|||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -52,4 +52,4 @@ $profile=new Profile_Menu($cn);
|
|||
$profile->p_id=$p_id;
|
||||
$profile->display_module_menu($module,$p_level);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ try {
|
|||
$gDossier = dossier::id();
|
||||
|
||||
} catch (Exception $exc) {
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ try
|
|||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -48,4 +48,4 @@ $cn->exec_sql('delete from profile_menu where pm_id = $1 or pm_id_dep=$1',array(
|
|||
$cn->exec_sql("delete from profile_menu "
|
||||
. " where pm_id_dep is not null "
|
||||
. " and pm_id_dep not in (select pm_id from profile_menu)");
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ switch ($action)
|
|||
catch (Exception $exc)
|
||||
{
|
||||
echo $exc->getMessage();
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
$answer['message']=$exc->getMessage();
|
||||
}
|
||||
|
||||
|
|
@ -107,7 +107,7 @@ switch ($action)
|
|||
catch (Exception $exc)
|
||||
{
|
||||
echo $exc->getMessage();
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
$answer['message']=$exc->getMessage();
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue