X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/94d361b83b4d5cf2b5807684d1bb50f82fbb6b7b..c5bea9b23b86f421342a1a0c9c8de98acc250304:/cookbooks/tile/templates/default/debug.erb diff --git a/cookbooks/tile/templates/default/debug.erb b/cookbooks/tile/templates/default/debug.erb index d9fc329b3..3da30dfeb 100755 --- a/cookbooks/tile/templates/default/debug.erb +++ b/cookbooks/tile/templates/default/debug.erb @@ -6,6 +6,7 @@ import cgitb import os import sys import resource +import time # HTML Debug of errors cgitb.enable() @@ -59,8 +60,21 @@ print "
" print ""
-print "Render Server:<%= node['fqdn'] %>
"
-print "Load Average:%s
"
+<%
+node[:tile][:data].each do |name,data|
+ url = data[:url]
+ file = "/srv/tile.openstreetmap.org/data/#{File.basename(url)}"
+ file_basename = File.basename(url)
+-%>
+print "%s last modified: %s
" % ("<%= file_basename %>", time.ctime(os.path.getmtime("<%= file %>")))
+<%
+end
+-%>
+print "
" for param in os.environ.keys():