Skip to content

Commit

Permalink
FIX End log must use same level then start log.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 14, 2015
1 parent f9d8597 commit 14a8a22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/lib/functions.lib.php
Expand Up @@ -165,7 +165,7 @@ function dol_shutdown()
global $conf,$user,$langs,$db;
$disconnectdone=false; $depth=0;
if (is_object($db) && ! empty($db->connected)) { $depth=$db->transaction_opened; $disconnectdone=$db->close(); }
dol_syslog("--- End access to ".$_SERVER["PHP_SELF"].(($disconnectdone && $depth)?' (Warn: db disconnection forced, transaction depth was '.$depth.')':''), (($disconnectdone && $depth)?LOG_WARNING:LOG_DEBUG));
dol_syslog("--- End access to ".$_SERVER["PHP_SELF"].(($disconnectdone && $depth)?' (Warn: db disconnection forced, transaction depth was '.$depth.')':''), (($disconnectdone && $depth)?LOG_WARNING:LOG_INFO));
}


Expand Down
2 changes: 1 addition & 1 deletion htdocs/main.inc.php
Expand Up @@ -531,7 +531,7 @@ function analyse_sql_and_script(&$var, $type)
{
// We are already into an authenticated session
$login=$_SESSION["dol_login"];
dol_syslog("This is an already logged session. _SESSION['dol_login']=".$login);
dol_syslog("This is an already logged session. _SESSION['dol_login']=".$login, LOG_DEBUG);

$resultFetchUser=$user->fetch('',$login);
if ($resultFetchUser <= 0)
Expand Down

0 comments on commit 14a8a22

Please sign in to comment.