mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 10:04:12 +02:00
fmt
This commit is contained in:
parent
f684cee465
commit
ff3a0aa0e6
6 changed files with 2948 additions and 631 deletions
|
|
@ -1,10 +1,31 @@
|
|||
pub const STATEMENTS: &[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 , },
|
||||
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 , },
|
||||
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,
|
||||
},
|
||||
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,
|
||||
},
|
||||
];
|
||||
|
||||
pub const ROUTES: &[crate::Route] = &[
|
||||
|
||||
];
|
||||
pub const ROUTES: &[crate::Route] = &[];
|
||||
|
|
|
|||
|
|
@ -46,11 +46,40 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
|
|||
];
|
||||
|
||||
pub const ROUTES: &[crate::Route] = &[
|
||||
|
||||
crate :: Route { id : "files_antivirus.rule.listAll" , url : "/apps/files_antivirus/settings/rule/listall" , verb : "GET" , ocs : false , },
|
||||
crate :: Route { id : "files_antivirus.rule.clear" , url : "/apps/files_antivirus/settings/rule/clear" , verb : "POST" , ocs : false , },
|
||||
crate :: Route { id : "files_antivirus.rule.reset" , url : "/apps/files_antivirus/settings/rule/reset" , verb : "POST" , ocs : false , },
|
||||
crate :: Route { id : "files_antivirus.rule.save" , url : "/apps/files_antivirus/settings/rule/save" , verb : "POST" , ocs : false , },
|
||||
crate :: Route { id : "files_antivirus.rule.delete" , url : "/apps/files_antivirus/settings/rule/delete" , verb : "POST" , ocs : false , },
|
||||
crate :: Route { id : "files_antivirus.settings.save" , url : "/apps/files_antivirus/settings/save" , verb : "POST" , ocs : false , },
|
||||
crate::Route {
|
||||
id: "files_antivirus.rule.listAll",
|
||||
url: "/apps/files_antivirus/settings/rule/listall",
|
||||
verb: "GET",
|
||||
ocs: false,
|
||||
},
|
||||
crate::Route {
|
||||
id: "files_antivirus.rule.clear",
|
||||
url: "/apps/files_antivirus/settings/rule/clear",
|
||||
verb: "POST",
|
||||
ocs: false,
|
||||
},
|
||||
crate::Route {
|
||||
id: "files_antivirus.rule.reset",
|
||||
url: "/apps/files_antivirus/settings/rule/reset",
|
||||
verb: "POST",
|
||||
ocs: false,
|
||||
},
|
||||
crate::Route {
|
||||
id: "files_antivirus.rule.save",
|
||||
url: "/apps/files_antivirus/settings/rule/save",
|
||||
verb: "POST",
|
||||
ocs: false,
|
||||
},
|
||||
crate::Route {
|
||||
id: "files_antivirus.rule.delete",
|
||||
url: "/apps/files_antivirus/settings/rule/delete",
|
||||
verb: "POST",
|
||||
ocs: false,
|
||||
},
|
||||
crate::Route {
|
||||
id: "files_antivirus.settings.save",
|
||||
url: "/apps/files_antivirus/settings/save",
|
||||
verb: "POST",
|
||||
ocs: false,
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -20,7 +20,10 @@ pub const MAX_VERSIONS: &[(&str, &str)] = &[
|
|||
("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) {
|
||||
("deck", "1") => Some(("", deck_1::STATEMENTS)),
|
||||
("files_accesscontrol", "1") => Some(("", files_accesscontrol_1::STATEMENTS)),
|
||||
|
|
@ -35,6 +38,8 @@ pub fn all_routes() -> impl Iterator<Item = &'static Route> {
|
|||
deck_1::ROUTES,
|
||||
files_accesscontrol_1::ROUTES,
|
||||
files_antivirus_5::ROUTES,
|
||||
server_29::ROUTES
|
||||
].into_iter().flatten()
|
||||
server_29::ROUTES,
|
||||
]
|
||||
.into_iter()
|
||||
.flatten()
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue