madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21955: LJSUP-12194: Delayed entry worker: updat...

Committer: sbelyaev
LJSUP-12194: Delayed entry worker: update format of verbose information
U   trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm
Modified: trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm
===================================================================
--- trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm	2012-05-15 08:08:34 UTC (rev 21954)
+++ trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm	2012-05-15 09:03:17 UTC (rev 21955)
@@ -173,12 +173,22 @@
 
                 if ( $post_status->{delete_entry} ) {
                     if ($verbose) {
-                        print "The entry with subject " . $entry->subject;
+                        print "The entry with ";
                         print "\ndelayed id = " . $entry->delayedid . 
                         print " and post date " . $entry->posttime;
-                        print " is deleted\n";
+                        print " is deleted.\n";
+
+                        my $res = $post_status->{'res'};
+                        if ($res) {
+                            my $current_time = DateTime->now;
+                            my $url = $res->{'url'} || '';
+                            print "New post url " . $url;
+                            print " current time : " . $current_time->ymd . ", ";
+                            print $current_time->hms . "\n";
+                        }
+
                     }
-
+                
                     $entry->delete();
                 }
             }

Tags: livejournal, madeon, pm, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments