This commit is contained in:
@@ -80,19 +80,9 @@ namespace AyaNova.Api.Controllers
|
||||
return NotFound(new ApiErrorResponse(ApiErrorCode.NOT_FOUND));
|
||||
}
|
||||
|
||||
// //read it and stream it back in a json object
|
||||
|
||||
|
||||
// Newtonsoft.Json.Linq.JObject o = Newtonsoft.Json.Linq.JObject.FromObject(new
|
||||
// {
|
||||
// log = new
|
||||
// {
|
||||
// name = logname,
|
||||
// log = System.IO.File.ReadAllText(logFilePath)
|
||||
// }
|
||||
// });
|
||||
|
||||
// return Ok(new ApiOkResponse(o));
|
||||
|
||||
//Log
|
||||
EventLogProcessor.AddEntry(new Event(UserIdFromContext.Id(HttpContext.Items), 0, AyaType.LogFile, AyaEvent.Retrieved,logname), ct);
|
||||
|
||||
return Content(System.IO.File.ReadAllText(logFilePath));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user