{"action":"created","issue":{"url":"https://api.github.com/repos/ARCANEDEV/LogViewer/issues/66","repository_url":"https://api.github.com/repos/ARCANEDEV/LogViewer","labels_url":"https://api.github.com/repos/ARCANEDEV/LogViewer/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/ARCANEDEV/LogViewer/issues/66/comments","events_url":"https://api.github.com/repos/ARCANEDEV/LogViewer/issues/66/events","html_url":"https://github.com/ARCANEDEV/LogViewer/issues/66","id":158270595,"number":66,"title":"Deleting a log that will generate a new log fails on Windows 10","user":{"login":"rafael-renan-pacheco","id":12160864,"avatar_url":"https://avatars.githubusercontent.com/u/12160864?v=3","gravatar_id":"","url":"https://api.github.com/users/rafael-renan-pacheco","html_url":"https://github.com/rafael-renan-pacheco","followers_url":"https://api.github.com/users/rafael-renan-pacheco/followers","following_url":"https://api.github.com/users/rafael-renan-pacheco/following{/other_user}","gists_url":"https://api.github.com/users/rafael-renan-pacheco/gists{/gist_id}","starred_url":"https://api.github.com/users/rafael-renan-pacheco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafael-renan-pacheco/subscriptions","organizations_url":"https://api.github.com/users/rafael-renan-pacheco/orgs","repos_url":"https://api.github.com/users/rafael-renan-pacheco/repos","events_url":"https://api.github.com/users/rafael-renan-pacheco/events{/privacy}","received_events_url":"https://api.github.com/users/rafael-renan-pacheco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-03T00:53:54Z","updated_at":"2016-06-05T23:31:39Z","closed_at":null,"body":"Hi there!\r\n\r\nHere is the problem:\r\n\r\nI have a middleware enabled for LogViewer, which checks if the user has access to open and see LogViewer. This middleware runs 2 sql commands, one to load the user model, and another one to check if the user has the correct rule to view LogViewer. Since my application logs all sqls, these 2 sqls are fired for every new request and stored in laravel log file.\r\n\r\nWhen serving my app In Windows 10 using XAMPP, if I try to delete the current log in LogViewer, it fails with the following exception:\r\n\r\n![bug](https://cloud.githubusercontent.com/assets/12160864/15765464/7cf39678-290b-11e6-9fe4-3ca557e65cea.png)\r\n\r\nI'm guessing the problem is LogViewer trying to delete the file, and Laravel trying to store new log right away. If I delete a log from yesterday, it works just fine.\r\n\r\nServing my app from Linux works just fine as well. The moment I delete the log file, the LogViewer page is refreshed with an already new log file with 2 info lines (those 2 sqls I said before).\r\n\r\nThis is not critical, but would be nice to work just like it works on linux (if possible :smile:)\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/ARCANEDEV/LogViewer/issues/comments/223844649","html_url":"https://github.com/ARCANEDEV/LogViewer/issues/66#issuecomment-223844649","issue_url":"https://api.github.com/repos/ARCANEDEV/LogViewer/issues/66","id":223844649,"user":{"login":"arcanedev-maroc","id":3282340,"avatar_url":"https://avatars.githubusercontent.com/u/3282340?v=3","gravatar_id":"","url":"https://api.github.com/users/arcanedev-maroc","html_url":"https://github.com/arcanedev-maroc","followers_url":"https://api.github.com/users/arcanedev-maroc/followers","following_url":"https://api.github.com/users/arcanedev-maroc/following{/other_user}","gists_url":"https://api.github.com/users/arcanedev-maroc/gists{/gist_id}","starred_url":"https://api.github.com/users/arcanedev-maroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcanedev-maroc/subscriptions","organizations_url":"https://api.github.com/users/arcanedev-maroc/orgs","repos_url":"https://api.github.com/users/arcanedev-maroc/repos","events_url":"https://api.github.com/users/arcanedev-maroc/events{/privacy}","received_events_url":"https://api.github.com/users/arcanedev-maroc/received_events","type":"User","site_admin":false},"created_at":"2016-06-05T23:31:39Z","updated_at":"2016-06-05T23:31:39Z","body":"Feel free to make a PR to solve this issue :+1:\r\n\r\nI can't reproduce it because i don't have a Windows 10."}}
{"actor":{"display_login":"arcanedev-maroc"}}