mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-25 19:25:56 +00:00
Collect all diagnostics in one click and route reports to the right project
- The diagnostic package now also holds crash reports and small crash dumps from Core/Crashes, Windows' own crash records for the server programs (needed for crashes that bypass the server's crash handler), the newest update journals, the bot, supervisor and updater logs, and a view of which server programs run and from where. The folder with the file opens after export. - JSON files in the package keep valid JSON after secrets are removed. - The problem report asks what the problem is about and opens the new-issue page of the Manager, CoA Companions or SQUID Playerbots, preselecting the bot system that is switched on. One button collects diagnostics and opens the report. - Targets come from the module catalog; only their new-issue pages may be opened. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3f700ee8f4
commit
b3c50a7b39
20 files changed
+637
-58
No files matched your search
@@ -250,6 +250,19 @@ pub fn is_alive(record: &ProcessIdentity) -> bool {
|
||||
identity(record.pid).map(|cur| cur.same_as(record)).unwrap_or(false)
|
||||
}
|
||||
|
||||
/// Every running process whose image file is named one of `names` (compared without case), wherever it lives. Only for
|
||||
/// diagnostics: a process found this way is not trusted to belong to any installation.
|
||||
pub fn find_by_file_names(names: &[&str]) -> Vec<ProcessIdentity> {
|
||||
sys::all_pids()
|
||||
.into_iter()
|
||||
.filter_map(identity)
|
||||
.filter(|p| {
|
||||
let file = p.exe.rsplit(['\\', '/']).next().unwrap_or("");
|
||||
names.iter().any(|n| file.eq_ignore_ascii_case(n))
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Every running process whose image is exactly `exe`.
|
||||
pub fn find_by_exe(exe: &Path) -> Vec<ProcessIdentity> {
|
||||
let want = exe.to_string_lossy().to_lowercase().replace('/', "\\");
|
||||
|
||||
Reference in new issue
Block a user