1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-06-01 07:07:48 +02:00
Commit Graph

8 Commits

Author SHA1 Message Date
49c7d83840
fix logging and crash reports on Windows
"-H=windowsgui" disables stdout on Windows, and the io.Multiwriter used
for logging had stdout as it's first entry, which failed and caused
    logging and line caching to be skipped. stdout is now removed from
    the multiwriter in this situation. Other portion of the issue was
    because crash reports had colons in their names, which Windows
    doesn't like. Fixes #168.
2023-02-02 13:42:15 +00:00
1bfec54c93
print error and include in txt log on crash; fix email migration 2021-08-25 18:10:06 +01:00
756e7345cf
tray: remove systray dep in non-tray builds 2021-08-18 17:25:16 +01:00
eb3489b34f
tray: fix crashlogs, restart from web 2021-08-16 23:01:08 +01:00
db526fc611
exit: improve line number, include stack 2021-07-20 14:57:48 +01:00
a869acd5dc
exit: include file/line with error 2021-07-20 14:39:20 +01:00
b538922c05
Show log on log.Fatal calls, provide "sanitized" version, fix goreleaser
Sanitization means change anything in double quotes to "CENSORED". A
notice is included telling the user to check for themselves as well.
2021-06-11 23:28:21 +01:00
f0f4e8118e
Generate crash report txt and webpage
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
2021-06-11 21:56:53 +01:00