Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Print osinfo when start failed #191

Merged
merged 4 commits into from
Dec 18, 2024
Merged

Conversation

hengyoush
Copy link
Owner

@hengyoush hengyoush commented Dec 18, 2024

Add system info logging for crash reports

  • Implemented a function to log system information when a crash occurs.
  • The function collects OS, architecture, CPU count, Go version, kernel version, and Linux distribution details.
  • Added formatted crash report output including error messages and system information.
  • Included instructions for reporting issues on GitHub.

like this :

===================================
          Kyanos Crash Report
=========Error Message=============
Error: !23
============OS Info================
OS: linux
Arch: amd64
NumCPU: 2
GoVersion: go1.23.3
Kernel Version: 5.15.0-72-generic
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
===================================
Please visit https://github.com/kyanos/issues to report this issue.

Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kyanos ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2024 5:46pm

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Dec 18, 2024
Copy link

cloudflare-workers-and-pages bot commented Dec 18, 2024

Deploying kyanos with  Cloudflare Pages  Cloudflare Pages

Latest commit: dc20643
Status: ✅  Deploy successful!
Preview URL: https://1e745910.kyanos.pages.dev
Branch Preview URL: https://print-osinfo-when-failed.kyanos.pages.dev

View logs

@hengyoush hengyoush merged commit f84fd43 into main Dec 18, 2024
13 checks passed
@hengyoush hengyoush deleted the print-osinfo-when-failed branch December 18, 2024 17:54
hengyoush added a commit that referenced this pull request Jan 6, 2025
* feat: print os info when start failed

* feat: add system info logging for crash reports

* refactor: remove unsed log

* refactor: add faq url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant