Commit de08394f authored by Krzysztof Kutt's avatar Krzysztof Kutt
Browse files

przekierowanie logów loki do /dev/null

Showing with 3 additions and 3 deletions
+3 -3
......@@ -219,7 +219,7 @@ class syntax_plugin_loki extends DokuWiki_Syntax_Plugin
$fullgoal = "[library(rdf)],load_rdf('".TEMP_DIR."dokuwiki.rdf".$hash."', H),checklist(assert, H) ,".$goal;
if(strlen($goal)==0) { $fullgoal = rtrim($fullgoal, ',').'.'; }
exec('LANG=pl_PL.utf-8; /usr/bin/swipl -q -g "'.$fullgoal.'" -t halt > '.TEMP_DIR.'dokuwiki.loki'.$hash.$msgerr) ;
exec('LANG=pl_PL.utf-8; /usr/bin/swipl -q -g "'.$fullgoal.'" -t halt > '.TEMP_DIR.'dokuwiki.loki'.$hash.$msgerr.' 2> /dev/null') ;
// exec('LANG=pl_PL.utf-8; /usr/bin/swipl -q -g "'.$fullgoal.'" -t halt > '.TEMP_DIR.'dokuwiki.prolog'.$hash.$msgerr) ;
if ( $GLOBALS['ACT'] == 'preview' )
{
......@@ -351,7 +351,7 @@ class syntax_plugin_loki extends DokuWiki_Syntax_Plugin
{
//exec('LANG=pl_PL.utf-8; /usr/bin/swipl -f '.TEMP_DIR.'dokuwiki.code -g "'.$goal.'" -t halt > '.TEMP_DIR.'dokuwiki.loki') ;
//exec('LANG=pl_PL.utf-8; /usr/bin/swipl -q -s '.TEMP_DIR.'dokuwiki.code'.$hash.' -g "'.$trace.$goal.'" -t halt > '.TEMP_DIR.'dokuwiki.loki'.$hash.$msgerr) ;
exec('LANG=pl_PL.utf-8; /usr/bin/swipl -q -s '.TEMP_DIR.'dokuwiki.code'.$hash.' -g "'.$trace.$goal.'" -t halt > '.TEMP_DIR.'dokuwiki.loki'.$hash.$msgerr) ;
exec('LANG=pl_PL.utf-8; /usr/bin/swipl -q -s '.TEMP_DIR.'dokuwiki.code'.$hash.' -g "'.$trace.$goal.'" -t halt > '.TEMP_DIR.'dokuwiki.loki'.$hash.$msgerr.' 2> /dev/null') ;
$retval=file_get_contents(TEMP_DIR."dokuwiki.loki".$hash);
if(file_exists(TEMP_DIR."disperrors".$hash))
$renderer->doc .= "\n".file_get_contents(TEMP_DIR."disperrors".$hash);
......
......@@ -32,7 +32,7 @@ class LokiUtl {
exec('grep ".*" -rh $(grep -rl ".*" '. TEMP_DIR.' | grep "'.$scope.'") >> '.TEMP_DIR.'dokuwiki.code'.$hash);
}
exec('LANG=pl_PL.utf-8; /usr/bin/swipl -q -s '.TEMP_DIR.'dokuwiki.code'.$hash.' -g "'.$goal.'" -t halt > '.TEMP_DIR.'dokuwiki.loki'.$hash) ;
exec('LANG=pl_PL.utf-8; /usr/bin/swipl -q -s '.TEMP_DIR.'dokuwiki.code'.$hash.' -g "'.$goal.'" -t halt > '.TEMP_DIR.'dokuwiki.loki'.$hash.' 2> /dev/null') ;
$result = file_get_contents(TEMP_DIR."dokuwiki.loki".$hash);
if ($gather_data)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment