Minor log parsing bug fixes (#402)
* fix java arg logic * fix missing libraries detection for discord attached files * change `\r\n` to `\n` in the entire log instead --------- Co-authored-by: maskers <97827489+mskrss@users.noreply.github.com>
This commit is contained in:
parent
fcbdab43d8
commit
342f85c963
2 changed files with 4 additions and 2 deletions
|
@ -123,9 +123,9 @@ fn java_option(log: &str) -> Issue {
|
||||||
|
|
||||||
if let Some(captures) = vm_option.captures(log) {
|
if let Some(captures) = vm_option.captures(log) {
|
||||||
let title = if &captures[1] == "UseShenandoahGC" {
|
let title = if &captures[1] == "UseShenandoahGC" {
|
||||||
"Wrong Java Arguments"
|
|
||||||
} else {
|
|
||||||
"Java 8 and below don't support ShenandoahGC"
|
"Java 8 and below don't support ShenandoahGC"
|
||||||
|
} else {
|
||||||
|
"Wrong Java Arguments"
|
||||||
};
|
};
|
||||||
return Some((
|
return Some((
|
||||||
title.to_string(),
|
title.to_string(),
|
||||||
|
|
|
@ -41,6 +41,8 @@ pub async fn handle(ctx: &Context, message: &Message, data: &Data) -> Result<()>
|
||||||
return Ok(());
|
return Ok(());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let log = log.replace("\r\n", "\n");
|
||||||
|
|
||||||
let issues = issues::find(&log, data).await?;
|
let issues = issues::find(&log, data).await?;
|
||||||
|
|
||||||
let embed = {
|
let embed = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue