avored-rust-cms
avored-rust-cms copied to clipboard
Add some stacktrace info or some more logs when general error occur
Should stacktrace be printed here? Otherwise, it will only show 'test 500' in response body and no error info in console or log file.
@dejavuwl as i understand you would be able to see the error in public/log/avored.log file when the 500 error is generate
impl From<std::io::Error> for Error {
fn from(val: std::io::Error) -> Self {
error!("there is an issue with creating io error: {val:?}"); // this line will go in the log file.
Error::Generic("tokio file create folder error ".to_string())
}
}
Thanks a lot, i found the log in public/log/avored.log.