Merge pull request #4326 from nextcloud/downstream-27562

Reorder the entries of the log for easier reading
This commit is contained in:
Morris Jobke 2017-04-13 13:11:47 -05:00 committed by GitHub
commit d0c0f6cfc1
2 changed files with 6 additions and 5 deletions

View File

@ -578,7 +578,8 @@ class Request implements \ArrayAccess, \Countable, IRequest {
}
if(empty($this->requestId)) {
$this->requestId = $this->secureRandom->generate(20);
$validChars = ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS;
$this->requestId = $this->secureRandom->generate(20, $validChars);
}
return $this->requestId;

View File

@ -106,14 +106,14 @@ class File {
$version = $config->getValue('version', '');
$entry = compact(
'reqId',
'remoteAddr',
'app',
'message',
'level',
'time',
'remoteAddr',
'user',
'app',
'method',
'url',
'user',
'message',
'userAgent',
'version'
);