]> git.mxchange.org Git - friendica.git/commitdiff
Logging to analyse the stale gprobe processes
authorMichael Vogel <icarus@dabo.de>
Mon, 8 Dec 2014 10:02:03 +0000 (11:02 +0100)
committerMichael Vogel <icarus@dabo.de>
Mon, 8 Dec 2014 10:02:03 +0000 (11:02 +0100)
include/gprobe.php

index 0cf32e95fe9311f04cffeeb1cd5089eb3cb5d119..36650eb9ae4d026ae06fe33b5d23a0e262b1d4de 100644 (file)
@@ -10,7 +10,7 @@ function gprobe_run(&$argv, &$argc){
        if(is_null($a)) {
                $a = new App;
        }
-  
+
        if(is_null($db)) {
            @include(".htconfig.php");
        require_once("include/dba.php");
@@ -37,6 +37,8 @@ function gprobe_run(&$argv, &$argc){
                dbesc(normalise_link($url))
        );
 
+       logger("gprobe start for ".normalise_link($url), LOGGER_DEBUG);
+
        if(! count($r)) {
 
                $arr = probe_url($url);
@@ -55,7 +57,8 @@ function gprobe_run(&$argv, &$argc){
        }
        if(count($r))
                poco_load(0,0,$r[0]['id'], str_replace('/profile/','/poco/',$r[0]['url']));
-               
+
+       logger("gprobe end for ".normalise_link($url), LOGGER_DEBUG);
        return;
 }