mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +02:00
fmt
This commit is contained in:
parent
847dd33a30
commit
87d904f7c5
5 changed files with 46 additions and 21 deletions
|
|
@ -228,4 +228,3 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
|
||||||
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 150usize , placeholders : & ["$pathElement" , "$uri"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , pattern : "Fragment part \"\0\" is no object in \0\u{1}\u{1}" , has_meaningful_message : true , },
|
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 150usize , placeholders : & ["$pathElement" , "$uri"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , pattern : "Fragment part \"\0\" is no object in \0\u{1}\u{1}" , has_meaningful_message : true , },
|
||||||
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 213usize , placeholders : & ["$error"] , exception : Some ("JsonSchema\\Exception\\JsonDecodingException") , pattern : "\0\u{1}\u{1}" , has_meaningful_message : false , },
|
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 213usize , placeholders : & ["$error"] , exception : Some ("JsonSchema\\Exception\\JsonDecodingException") , pattern : "\0\u{1}\u{1}" , has_meaningful_message : false , },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,29 @@
|
||||||
pub const STATEMENTS: &[crate::LoggingStatement] = &[
|
pub const STATEMENTS: &[crate::LoggingStatement] = &[
|
||||||
|
crate::LoggingStatement {
|
||||||
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Operation.php" , line : 104usize , placeholders : & ["$e->getMessage()"] , exception : None , pattern : "\0\u{1}\u{1}" , has_meaningful_message : false , },
|
level: crate::LogLevel::Debug,
|
||||||
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Operation.php" , line : 106usize , placeholders : & [] , exception : Some ("OCP\\Files\\ForbiddenException") , pattern : "Access denied\u{1}\u{1}" , has_meaningful_message : true , },
|
path: "/lib/Operation.php",
|
||||||
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Operation.php" , line : 203usize , placeholders : & [] , exception : Some ("UnexpectedValueException") , pattern : "No rule given\u{1}\u{1}" , has_meaningful_message : true , },
|
line: 104usize,
|
||||||
|
placeholders: &["$e->getMessage()"],
|
||||||
|
exception: None,
|
||||||
|
pattern: "\0\u{1}\u{1}",
|
||||||
|
has_meaningful_message: false,
|
||||||
|
},
|
||||||
|
crate::LoggingStatement {
|
||||||
|
level: crate::LogLevel::Exception,
|
||||||
|
path: "/lib/Operation.php",
|
||||||
|
line: 106usize,
|
||||||
|
placeholders: &[],
|
||||||
|
exception: Some("OCP\\Files\\ForbiddenException"),
|
||||||
|
pattern: "Access denied\u{1}\u{1}",
|
||||||
|
has_meaningful_message: true,
|
||||||
|
},
|
||||||
|
crate::LoggingStatement {
|
||||||
|
level: crate::LogLevel::Exception,
|
||||||
|
path: "/lib/Operation.php",
|
||||||
|
line: 203usize,
|
||||||
|
placeholders: &[],
|
||||||
|
exception: Some("UnexpectedValueException"),
|
||||||
|
pattern: "No rule given\u{1}\u{1}",
|
||||||
|
has_meaningful_message: true,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,4 +42,3 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
|
||||||
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ScannerFactory.php" , line : 52usize , placeholders : & ["$avMode"] , exception : Some ("InvalidArgumentException") , pattern : "Application is misconfigured. Please check the settings at the admin page. Invalid mode: \0\u{1}\u{1}" , has_meaningful_message : true , },
|
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ScannerFactory.php" , line : 52usize , placeholders : & ["$avMode"] , exception : Some ("InvalidArgumentException") , pattern : "Application is misconfigured. Please check the settings at the admin page. Invalid mode: \0\u{1}\u{1}" , has_meaningful_message : true , },
|
||||||
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Status.php" , line : 86usize , placeholders : & ["__METHOD__" , "$e->getMessage()"] , exception : None , pattern : "\0, exception: \0\u{1}\u{1}" , has_meaningful_message : true , },
|
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Status.php" , line : 86usize , placeholders : & ["__METHOD__" , "$e->getMessage()"] , exception : None , pattern : "\0, exception: \0\u{1}\u{1}" , has_meaningful_message : true , },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,24 +7,30 @@ mod server_29;
|
||||||
|
|
||||||
pub const MIN_VERSIONS: &[(&str, &str)] = &[
|
pub const MIN_VERSIONS: &[(&str, &str)] = &[
|
||||||
("deck", "1"),
|
("deck", "1"),
|
||||||
("files_accesscontrol", "1"),
|
("files_accesscontrol", "1"),
|
||||||
("files_antivirus", "5"),
|
("files_antivirus", "5"),
|
||||||
("server", "29"),
|
("server", "29"),
|
||||||
];
|
];
|
||||||
|
|
||||||
pub const MAX_VERSIONS: &[(&str, &str)] = &[
|
pub const MAX_VERSIONS: &[(&str, &str)] = &[
|
||||||
("deck", "1"),
|
("deck", "1"),
|
||||||
("files_accesscontrol", "1"),
|
("files_accesscontrol", "1"),
|
||||||
("files_antivirus", "5"),
|
("files_antivirus", "5"),
|
||||||
("server", "29"),
|
("server", "29"),
|
||||||
];
|
];
|
||||||
|
|
||||||
pub fn get_statements_for(name: &str, version: &str) -> Option<(&'static str, &'static [LoggingStatement])> {
|
pub fn get_statements_for(
|
||||||
|
name: &str,
|
||||||
|
version: &str,
|
||||||
|
) -> Option<(&'static str, &'static [LoggingStatement])> {
|
||||||
match (name, version) {
|
match (name, version) {
|
||||||
("deck", "1") => Some(("/apps/deck", deck_1::STATEMENTS)),
|
("deck", "1") => Some(("/apps/deck", deck_1::STATEMENTS)),
|
||||||
("files_accesscontrol", "1") => Some(("/apps/files_accesscontrol", files_accesscontrol_1::STATEMENTS)),
|
("files_accesscontrol", "1") => Some((
|
||||||
("files_antivirus", "5") => Some(("/apps/files_antivirus", files_antivirus_5::STATEMENTS)),
|
"/apps/files_accesscontrol",
|
||||||
("server", "29") => Some(("", server_29::STATEMENTS)),
|
files_accesscontrol_1::STATEMENTS,
|
||||||
|
)),
|
||||||
|
("files_antivirus", "5") => Some(("/apps/files_antivirus", files_antivirus_5::STATEMENTS)),
|
||||||
|
("server", "29") => Some(("", server_29::STATEMENTS)),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8552,4 +8552,3 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
|
||||||
crate :: LoggingStatement { level : crate :: LogLevel :: Unknown , path : "/updater/index.php" , line : 1393usize , placeholders : & [] , exception : None , pattern : "[error] POST request failed with other exception\u{1}\u{1}" , has_meaningful_message : true , },
|
crate :: LoggingStatement { level : crate :: LogLevel :: Unknown , path : "/updater/index.php" , line : 1393usize , placeholders : & [] , exception : None , pattern : "[error] POST request failed with other exception\u{1}\u{1}" , has_meaningful_message : true , },
|
||||||
crate :: LoggingStatement { level : crate :: LogLevel :: Unknown , path : "/updater/index.php" , line : 1409usize , placeholders : & [] , exception : None , pattern : "[info] show HTML page\u{1}\u{1}" , has_meaningful_message : true , },
|
crate :: LoggingStatement { level : crate :: LogLevel :: Unknown , path : "/updater/index.php" , line : 1409usize , placeholders : & [] , exception : None , pattern : "[info] show HTML page\u{1}\u{1}" , has_meaningful_message : true , },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue