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.

Change summary

mpx-catapult.rb | 5 ++++-
sgx-catapult.rb | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)

Detailed changes

mpx-catapult.rb 🔗

@@ -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

sgx-catapult.rb 🔗

@@ -30,7 +30,7 @@ require 'goliath/api'
 require 'goliath/server'
 require 'log4r'
 
-puts "Soprani.ca/SMS Gateway for XMPP - Catapult        v0.017"
+puts "Soprani.ca/SMS Gateway for XMPP - Catapult        v0.018\n\n"
 
 if ARGV.size != 9 then
 	puts "Usage: sgx-catapult.rb <component_jid> <component_password> " +
@@ -40,6 +40,9 @@ if ARGV.size != 9 then
 	exit 0
 end
 
+t = Time.now
+puts "LOG %d.%09d: starting...\n\n" % [t.to_i, t.nsec]
+
 module SGXcatapult
 	extend Blather::DSL