print the time on startup to aid in debugging logs
Denver Gingerich
created
This mirrors what we did in jmp-fwdcalls commit 5901c10, but also adds
some more newlines to make it look nicer (which jmp-fwdcalls had
already).
Note that both mpx-catapult and sgx-catapult are being updated here;
aside from the new log line printing, there are no functional changes.
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with sgx-catapult. If not, see <http://www.gnu.org/licenses/>.
-puts "Soprani.ca/MMS Proxy for XMPP - Catapult v0.003"
+puts "Soprani.ca/MMS Proxy for XMPP - Catapult v0.004\n\n"
require 'goliath'
require 'net/http'
@@ -30,6 +30,9 @@ if ARGV.size != 3 then
exit 0
end
+t = Time.now
+puts "LOG %d.%09d: starting...\n\n" % [t.to_i, t.nsec]
+
class WebhookHandler < Goliath::API
def response(env)
puts 'ENV: ' + env.to_s