mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
Harvey Tindall
f0f4e8118e
The last 100 lines of logs are now cached, and when a crash occurs, they are saved to a file in the temp directory ("/tmp" on *nix), and pretty HTML version is also created and opened in the browser. * Currently only handles panics, will be included in more places soon * Copy button and button to generate a GH issue will be added
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="bundle.css">
|
|
{{ template "header.html" . }}
|
|
<title>Crash report</title>
|
|
</head>
|
|
<body>
|
|
<div class="page-container">
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="card ~critical sectioned">
|
|
<section class="section ~critical">
|
|
<span class="heading">Crash report for jfa-go</span>
|
|
{{ if .Err }}
|
|
<div class="monospace pre-line mt-1 mb-1">
|
|
Error: {{ .Err }}
|
|
</div>
|
|
{{ end }}
|
|
<a class="button ~critical mb-1" target="_blank" href="https://github.com/hrfee/jfa-go/issues/new/choose">Create an Issue</a>
|
|
</section>
|
|
<section class="section ~neutral !low">
|
|
<span class="subheading">Full Log</span>
|
|
<pre class="monospace pre-line">{{ .Log }}</pre>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|