Skip to content

Instantly share code, notes, and snippets.

@henare
Created August 23, 2013 06:56
Show Gist options
  • Save henare/6316296 to your computer and use it in GitHub Desktop.
Save henare/6316296 to your computer and use it in GitHub Desktop.
Output differences between master and OA-532 when running the OA alert mailer
linux-uvvg:/srv/www/openaustralia/twfy/scripts # echo -e "0\n0" > alerts-lastsent
linux-uvvg:/srv/www/openaustralia/twfy/scripts # git checkout master
Already on "master"
linux-uvvg:/srv/www/openaustralia/twfy/scripts # php alertmailer.php
max_batch_id: 3
lastupdated: 1377093600 lastbatch: 0
batch_query_fragment: batch:1 batch:2 batch:3
EMAIL: [email protected], uid 0; memory usage : 3556936
ALERT 1/1 QUERY 0 : Xapian query 'speaker:10552 batch:1 batch:2 batch:3', caching, hits 32, time 0.13633012771606
SEND 1 : Sending email to [email protected] ... sent ... pausing ... done
Active alerts: 1
Email lookups: 0 registered, 1 unregistered
Query lookups: 1
Sent emails: 1
Everything went swimmingly, in 1.188560962677
Thu, 22 Aug 2013 04:47:53 +1000
linux-uvvg:/srv/www/openaustralia/twfy/scripts # echo -e "0\n0" > alerts-lastsent
linux-uvvg:/srv/www/openaustralia/twfy/scripts # git checkout origin/OA-532
Note: moving to "origin/OA-532" which isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
git checkout -b <new_branch_name>
HEAD is now at 951090d... Moved the highlighting of the alert term, downstream so Text and HTML can highlight differently.
linux-uvvg:/srv/www/openaustralia/twfy/scripts # php alertmailer.php
max_batch_id: 3
lastupdated: 1377093600 lastbatch: 0
batch_query_fragment: batch:1 batch:2 batch:3
EMAIL: [email protected], uid 0; memory usage : 3575480
ALERT 1/1 QUERY 0 : Xapian query 'speaker:10552 batch:1 batch:2 batch:3', caching, hits 32, time 0.15199589729309
PHP Notice: Undefined variable: returl in /srv/www/openaustralia/twfy/www/includes/easyparliament/page.php on line 889
PHP Notice: Undefined variable: returl in /srv/www/openaustralia/twfy/www/includes/easyparliament/page.php on line 911
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>OpenAustralia.org</title>
<meta name="description" content="Making parliament easy.">
<meta name="keywords" content="Parliament, government, House of Representatives, Senate, Senator, MP, Member of Parliament, MPs, Australia, Australian, ">
<meta name="verify-v1" content="5FBaCDi8kCKdo4s64NEdB5EOJDNc310SwcLLYHmEbgg=">
<link rel="author" title="Send feedback" href="mailto:contact&#64;openaustralia.org">
<link rel="home" title="Home" href="http://dev.openaustralia.org/">
<link rel="start" title="Home" href="/">
<!-- skin: default -->
<link rel="stylesheet" href="/style/default/global.css" type="text/css">
</head>
<body>
<div id="container">
<a name="top"></a>
<div id="banner">
<div id="title">
<h1><a href="/" title="To the front page of the site"><img src="/images/openaustraliaorgbeta.gif" width="262" height="32" alt="OpenAustralia.org beta"></a></h1>
</div>
<div id="search">
<form action="/search/" method="get">
<p style="padding-left: 5px"><input name="s" size="15"> <input type="submit" class="submit" value="Search"></p>
</form>
</div>
</div> <!-- end #banner -->
<div id="menu">
<div id="topmenu">
<ul id="user">
<li><a href="/user/login/" title="If you've already joined, log in to post comments">Log in</a></li>
<li><a href="/user/?pg=join" title="Joining is free and allows you to post comments">Join</a></li>
<!-- <li><a href="/getinvolved/?pg=getinvolved" title="Contribute to OpenAustralia.org">Get involved</a></li> -->
</ul>
<br>
</div>
<div id="bottommenu">
<ul>
<li><a href="/" title="The front page of the site">Home</a></li>
<li><a href="/hansard/" title="House of Representatives and Senate debates">Debates</a></li>
<li><a href="/comments/recent/" title="Recently posted comments">Recent comments</a></li>
<li><a href="/mps/" title="Your Representative and list of all Members of the House of Representatives">Representatives</a></li>
<li><a href="/senators/" title="List of all Senators">Senators</a></li>
<li><a href="/help/" title="Answers to your questions">Help</a></li>
</ul>
</div>
</div> <!-- end #menu -->
<div id="content">
<div class="stripe-side">
<div class="main">
<h3>&nbsp;</h3>
<h3 class="error">Error</h3>
<p class="error">URL: None - running from command line?
Referer: None
User-Agent: None
Number: 8
Type: Notice
Message: Undefined variable: email_text
File: /srv/www/openaustralia/twfy/scripts/alertmailer.php
Line: 261
Source:
259 $email_html .= "<p>As a registered user, you can <a href='http://www.openaustralia.org/user/'>manage your alerts online</a>.\n";
260 } else {
261 $email_text .= "If you register on the site, you will be able to manage your\n";
262 $email_text .= " alerts there as well as post comments. :)\n";
263 $email_html .= "<p>If you <a href='http://www.openaustralia.org/user/?pg=join'>register online</a> you will be able to manage you alerts, and post comments too.</a></p>\n";
</p>
</div> <!-- end .main -->
<div class="sidebar">
&nbsp;
</div> <!-- end .sidebar -->
<div class="break"></div>
</div> <!-- end .stripe-* -->
&nbsp; <font face="Courier New,Courier">error_handler(8, Undefined variable: email_text, /srv/www/openaustralia/twfy/scripts/alertmailer.php, 261, Array[8])
<font face="Courier New,Courier">write_and_send_email([email protected], 0, By Kevin Rudd : 32 House of Representatives debates
============..., &lt;p&gt;By Kevin Rudd : 32 House of Representatives debates&lt;/p&gt;
&lt;p&gt;Th...)
<pre>
string(391) " &nbsp; <font face="Courier New,Courier">error_handler(8, Undefined variable: email_text, /srv/www/openaustralia/twfy/scripts/alertmailer.php, 261, Array[8])
<font face="Courier New,Courier">write_and_send_email([email protected], 0, By Kevin Rudd : 32 House of Representatives debates
============..., &lt;p&gt;By Kevin Rudd : 32 House of Representatives debates&lt;/p&gt;
&lt;p&gt;Th...)
"
</pre>
SEND 1 : Sending email to [email protected] ... sent ... pausing ... done
Active alerts: 1
Email lookups: 0 registered, 1 unregistered
Query lookups: 1
Sent emails: 1
Everything went swimmingly, in 1.216295003891
Thu, 22 Aug 2013 04:48:20 +1000
linux-uvvg:/srv/www/openaustralia/twfy/scripts #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment