Move error_page to notfound_page. error_page is now for internal server errors. Introduce logging option log_crash_state, enabled by default. Crash states are written out compressed and encoded log-file-friendly, these are useful for debugging but take a couple dozen kilobytes of disk space each.apogrebennyk/3_1_force_outbound
parent
be3439da01
commit
a37b165caf
@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
use Convert::Ascii85 qw();
|
||||||
|
use IO::Uncompress::UnXz qw(unxz $UnXzError);
|
||||||
|
|
||||||
|
local $/ = undef;
|
||||||
|
my $buf = Convert::Ascii85::decode(<>);
|
||||||
|
my $out;
|
||||||
|
unxz \$buf, \$out or die $UnXzError;
|
||||||
|
print $out;
|
||||||
|
|
||||||
|
__END__
|
||||||
|
|
||||||
|
=encoding UTF-8
|
||||||
|
|
||||||
|
=head1 NAME
|
||||||
|
|
||||||
|
ngcp_panel_decode_crash - decode a crash state from the Web server error log
|
||||||
|
|
||||||
|
=head1 USAGE
|
||||||
|
|
||||||
|
ngcp_panel_decode_crash < crashfile
|
@ -0,0 +1,37 @@
|
|||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="span12">
|
||||||
|
|
||||||
|
<div class="error-container">
|
||||||
|
|
||||||
|
<h1>Oops!</h1>
|
||||||
|
|
||||||
|
<h2>[% c.response.status %] Not found</h2>
|
||||||
|
|
||||||
|
<div class="error-details">
|
||||||
|
Sorry, an error has occured, Requested page not found!
|
||||||
|
|
||||||
|
</div> <!-- /error-details -->
|
||||||
|
|
||||||
|
<div class="error-actions">
|
||||||
|
<a href="[% c.uri_for('/back') %]" class="btn btn-large btn-primary">
|
||||||
|
<i class="icon-chevron-left"></i>
|
||||||
|
|
||||||
|
Back to Dashboard
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="mailto:[% c.config.contact.email %]" class="btn btn-large">
|
||||||
|
<i class="icon-envelope"></i>
|
||||||
|
|
||||||
|
Contact Support
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div> <!-- /error-actions -->
|
||||||
|
|
||||||
|
</div> <!-- /.error-container -->
|
||||||
|
|
||||||
|
|
||||||
|
</div> <!-- /.span12 -->
|
||||||
|
|
||||||
|
</div> <!-- /.row -->
|
||||||
|
|
Loading…
Reference in new issue