avored-rust-cms icon indicating copy to clipboard operation
avored-rust-cms copied to clipboard

Add some stacktrace info or some more logs when general error occur

Open dejavuwl opened this issue 1 year ago • 1 comments

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 avatar Sep 21 '24 00:09 dejavuwl

@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())
    }
}

indpurvesh avatar Sep 26 '24 09:09 indpurvesh

Thanks a lot, i found the log in public/log/avored.log.

dejavuwl avatar Oct 15 '24 12:10 dejavuwl