{"action":"created","issue":{"url":"https://api.github.com/repos/pydio/pydio-core/issues/902","labels_url":"https://api.github.com/repos/pydio/pydio-core/issues/902/labels{/name}","comments_url":"https://api.github.com/repos/pydio/pydio-core/issues/902/comments","events_url":"https://api.github.com/repos/pydio/pydio-core/issues/902/events","html_url":"https://github.com/pydio/pydio-core/issues/902","id":72119601,"number":902,"title":"textLogDriver broken?","user":{"login":"danielmorlock","id":1263320,"avatar_url":"https://avatars.githubusercontent.com/u/1263320?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmorlock","html_url":"https://github.com/danielmorlock","followers_url":"https://api.github.com/users/danielmorlock/followers","following_url":"https://api.github.com/users/danielmorlock/following{/other_user}","gists_url":"https://api.github.com/users/danielmorlock/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmorlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmorlock/subscriptions","organizations_url":"https://api.github.com/users/danielmorlock/orgs","repos_url":"https://api.github.com/users/danielmorlock/repos","events_url":"https://api.github.com/users/danielmorlock/events{/privacy}","received_events_url":"https://api.github.com/users/danielmorlock/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydio/pydio-core/labels/prio:high","name":"prio:high","color":"bfe5bf"},{"url":"https://api.github.com/repos/pydio/pydio-core/labels/type:bug","name":"type:bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-30T10:17:34Z","updated_at":"2015-05-04T07:30:36Z","closed_at":null,"body":"The textLogDriver creates log files with correct permission, but does not write to them. I prepend a \r\n\r\n    var_dump(microtime(true), \"__destruct()\", $this->fileHandle);\r\n\r\nto textLogDriver::__destruct() and\r\n\r\n    var_dump(microtime(true), \"write2\", $level, $ip, $user, $source, $prefix, $message);\r\n\r\nto textLogDriver::write2(). I get the following output:\r\n\r\n    float(1430388841.1415)\r\n    string(12) \"__destruct()\"\r\n    resource(20) of type (stream)\r\n    float(1430388841.2099)\r\n    string(6) \"write2\"\r\n    string(4) \"Info\"\r\n    string(12) \"79.209.97.10\"\r\n    string(4) \"root\"\r\n    string(9) \"access.fs\"\r\n    string(11) \"Get_content\"\r\n    string(24) \"files=my-files/world.txt\"\r\n    float(1430388841.21)\r\n    string(6) \"write2\"\r\n    string(5) \"Error\"\r\n    string(12) \"79.209.97.10\"\r\n    string(4) \"root\"\r\n    string(23) \"class.textLogDriver.php\"\r\n    string(11) \"error l.160\"\r\n    string(51) \"message=fwrite(): 20 is not a valid stream resource\"\r\n\r\nSo it seems that the __destruct() is called before the write2(). \r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/pydio/pydio-core/issues/comments/98609490","html_url":"https://github.com/pydio/pydio-core/issues/902#issuecomment-98609490","issue_url":"https://api.github.com/repos/pydio/pydio-core/issues/902","id":98609490,"user":{"login":"cdujeu","id":2465057,"avatar_url":"https://avatars.githubusercontent.com/u/2465057?v=3","gravatar_id":"","url":"https://api.github.com/users/cdujeu","html_url":"https://github.com/cdujeu","followers_url":"https://api.github.com/users/cdujeu/followers","following_url":"https://api.github.com/users/cdujeu/following{/other_user}","gists_url":"https://api.github.com/users/cdujeu/gists{/gist_id}","starred_url":"https://api.github.com/users/cdujeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdujeu/subscriptions","organizations_url":"https://api.github.com/users/cdujeu/orgs","repos_url":"https://api.github.com/users/cdujeu/repos","events_url":"https://api.github.com/users/cdujeu/events{/privacy}","received_events_url":"https://api.github.com/users/cdujeu/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T07:30:36Z","updated_at":"2015-05-04T07:30:36Z","body":"cf https://github.com/pydio/pydio-core/issues/902"}}