diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-01-09 00:33:22 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-01-09 00:33:22 +0100 |
commit | 6a5f12beca175a0b9a951fa844eacfd21a8df3de (patch) | |
tree | 8e1b1b00109daaa1c7dd1f24f3f585d94c7a5b52 /lib/private | |
parent | 5311d92c5c9dc0de297e36e4009b1e99f386e6bd (diff) | |
parent | f579f2bd948ca73a1af720e19517af9bdde11748 (diff) | |
download | nextcloud-server-6a5f12beca175a0b9a951fa844eacfd21a8df3de.tar.gz nextcloud-server-6a5f12beca175a0b9a951fa844eacfd21a8df3de.zip |
Merge pull request #12988 from owncloud/logfile_download
Logfile download
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/log/owncloud.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/private/log/owncloud.php b/lib/private/log/owncloud.php index d257bd12d2a..c8ae61032aa 100644 --- a/lib/private/log/owncloud.php +++ b/lib/private/log/owncloud.php @@ -111,7 +111,7 @@ class OC_Log_Owncloud { $entriesCount = 0; $lines = 0; // Loop through each character of the file looking for new lines - while ($pos >= 0 && $entriesCount < $limit) { + while ($pos >= 0 && ($limit === null ||$entriesCount < $limit)) { fseek($handle, $pos); $ch = fgetc($handle); if ($ch == "\n" || $pos == 0) { @@ -141,4 +141,11 @@ class OC_Log_Owncloud { } return $entries; } + + /** + * @return string + */ + public static function getLogFilePath() { + return self::$logFile; + } } |