/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
if ($this->useLocking) {
// ignoring errors here, there's not much we can do about them
flock($this->stream, LOCK_EX);
}
$this->streamWrite($this->stream, $record);
if ($this->useLocking) {
flock($this->stream, LOCK_UN);
}
}
/**
* Write to stream
* @param resource $stream
* @param array $record
*/
protected function streamWrite($stream, array $record)
{
fwrite($stream, (string) $record['formatted']);
}
private function customErrorHandler($code, $msg)
{
$this->errorMessage = preg_replace('{^(fopen|mkdir)\(.*?\): }', '', $msg);
}
/**
* @param string $stream
*
* @return null|string
*/
private function getDirFromStream($stream)
{
$pos = strpos($stream, '://');
if ($pos === false) {
return dirname($stream);
}
if ('file://' === substr($stream, 0, 7)) {
Arguments
"fwrite(): write of 3379 bytes failed with errno=28 No space left on device"
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
if ($this->useLocking) {
// ignoring errors here, there's not much we can do about them
flock($this->stream, LOCK_EX);
}
$this->streamWrite($this->stream, $record);
if ($this->useLocking) {
flock($this->stream, LOCK_UN);
}
}
/**
* Write to stream
* @param resource $stream
* @param array $record
*/
protected function streamWrite($stream, array $record)
{
fwrite($stream, (string) $record['formatted']);
}
private function customErrorHandler($code, $msg)
{
$this->errorMessage = preg_replace('{^(fopen|mkdir)\(.*?\): }', '', $msg);
}
/**
* @param string $stream
*
* @return null|string
*/
private function getDirFromStream($stream)
{
$pos = strpos($stream, '://');
if ($pos === false) {
return dirname($stream);
}
if ('file://' === substr($stream, 0, 7)) {
Arguments
stream resource @57
timed_out: false
blocked: true
eof: false
wrapper_type: "plainfile"
stream_type: "STDIO"
mode: "a"
unread_bytes: 0
seekable: true
uri: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/storage/logs/laravel-2024-03-29.log"
options: []
}
"""
[2024-03-29 13:45:15] local.ERROR: fwrite(): write of 4096 bytes failed with errno=28 No space left on device {"exception":"[object] (ErrorException(code: 0): fwrite(): write of 4096 bytes failed with errno=28 No space left on device at /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:130)\n
[stacktrace]\n
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'fwrite(): write...', '/home/newsitewa...', 130, Array)\n
#1 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(130): fwrite(Resource id #57, '[2024-03-29 13:...')\n
#2 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(116): Monolog\\Handler\\StreamHandler->streamWrite(Resource id #57, Array)\n
#3 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(119): Monolog\\Handler\\StreamHandler->write(Array)\n
#4 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\\Handler\\RotatingFileHandler->write(Array)\n
#5 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)\n
#6 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php(707): Monolog\\Logger->addRecord(400, 'fwrite(): write...', Array)\n
#7 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php(176): Monolog\\Logger->error('fwrite(): write...', Array)\n
#8 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php(87): Illuminate\\Log\\Logger->writeLog('error', 'fwrite(): write...', Array)\n
#9 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(500): Illuminate\\Log\\Logger->error('fwrite(): write...', Array)\n
#10 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(116): Illuminate\\Log\\LogManager->error('fwrite(): write...', Array)\n
#11 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/app/Exceptions/Handler.php(37): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(ErrorException))\n
#12 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(314): App\\Exceptions\\Handler->report(Object(ErrorException))\n
#13 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(118): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(ErrorException))\n
#14 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/index.php(60): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n
#15 {main}\n
"} \n
"""
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
$this->createDir();
$this->errorMessage = null;
set_error_handler(array($this, 'customErrorHandler'));
$this->stream = fopen($this->url, 'a');
if ($this->filePermission !== null) {
@chmod($this->url, $this->filePermission);
}
restore_error_handler();
if (!is_resource($this->stream)) {
$this->stream = null;
throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened: '.$this->errorMessage, $this->url));
}
}
if ($this->useLocking) {
// ignoring errors here, there's not much we can do about them
flock($this->stream, LOCK_EX);
}
$this->streamWrite($this->stream, $record);
if ($this->useLocking) {
flock($this->stream, LOCK_UN);
}
}
/**
* Write to stream
* @param resource $stream
* @param array $record
*/
protected function streamWrite($stream, array $record)
{
fwrite($stream, (string) $record['formatted']);
}
private function customErrorHandler($code, $msg)
{
$this->errorMessage = preg_replace('{^(fopen|mkdir)\(.*?\): }', '', $msg);
}
Arguments
stream resource @57
timed_out: false
blocked: true
eof: false
wrapper_type: "plainfile"
stream_type: "STDIO"
mode: "a"
unread_bytes: 0
seekable: true
uri: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/storage/logs/laravel-2024-03-29.log"
options: []
}
array:8 [
"message" => "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
"context" => array:1 [
"exception" => ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}
]
"level" => 400
"level_name" => "ERROR"
"channel" => "local"
"datetime" => DateTime @1711719915 {#43
date: 2024-03-29 13:45:15.299907 UTC (+00:00)
}
"extra" => []
"formatted" => """
[2024-03-29 13:45:15] local.ERROR: fwrite(): write of 4096 bytes failed with errno=28 No space left on device {"exception":"[object] (ErrorException(code: 0): fwrite(): write of 4096 bytes failed with errno=28 No space left on device at /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:130)\n
[stacktrace]\n
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'fwrite(): write...', '/home/newsitewa...', 130, Array)\n
#1 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(130): fwrite(Resource id #57, '[2024-03-29 13:...')\n
#2 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(116): Monolog\\Handler\\StreamHandler->streamWrite(Resource id #57, Array)\n
#3 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(119): Monolog\\Handler\\StreamHandler->write(Array)\n
#4 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\\Handler\\RotatingFileHandler->write(Array)\n
#5 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)\n
#6 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php(707): Monolog\\Logger->addRecord(400, 'fwrite(): write...', Array)\n
#7 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php(176): Monolog\\Logger->error('fwrite(): write...', Array)\n
#8 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php(87): Illuminate\\Log\\Logger->writeLog('error', 'fwrite(): write...', Array)\n
#9 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(500): Illuminate\\Log\\Logger->error('fwrite(): write...', Array)\n
#10 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(116): Illuminate\\Log\\LogManager->error('fwrite(): write...', Array)\n
#11 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/app/Exceptions/Handler.php(37): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(ErrorException))\n
#12 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(314): App\\Exceptions\\Handler->report(Object(ErrorException))\n
#13 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(118): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(ErrorException))\n
#14 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/index.php(60): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n
#15 {main}\n
"} \n
"""
]
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
$this->url = $this->getTimedFilename();
$this->close();
}
/**
* {@inheritdoc}
*/
protected function write(array $record)
{
// on the first record written, if the log is new, we should rotate (once per day)
if (null === $this->mustRotate) {
$this->mustRotate = !file_exists($this->url);
}
if ($this->nextRotation < $record['datetime']) {
$this->mustRotate = true;
$this->close();
}
parent::write($record);
}
/**
* Rotates the files.
*/
protected function rotate()
{
// update filename
$this->url = $this->getTimedFilename();
$this->nextRotation = new \DateTime('tomorrow');
// skip GC of old logs if files are unlimited
if (0 === $this->maxFiles) {
return;
}
$logFiles = glob($this->getGlobPattern());
if ($this->maxFiles >= count($logFiles)) {
// no files to remove
return;
Arguments
array:8 [
"message" => "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
"context" => array:1 [
"exception" => ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}
]
"level" => 400
"level_name" => "ERROR"
"channel" => "local"
"datetime" => DateTime @1711719915 {#43
date: 2024-03-29 13:45:15.299907 UTC (+00:00)
}
"extra" => []
"formatted" => """
[2024-03-29 13:45:15] local.ERROR: fwrite(): write of 4096 bytes failed with errno=28 No space left on device {"exception":"[object] (ErrorException(code: 0): fwrite(): write of 4096 bytes failed with errno=28 No space left on device at /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:130)\n
[stacktrace]\n
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'fwrite(): write...', '/home/newsitewa...', 130, Array)\n
#1 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(130): fwrite(Resource id #57, '[2024-03-29 13:...')\n
#2 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(116): Monolog\\Handler\\StreamHandler->streamWrite(Resource id #57, Array)\n
#3 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(119): Monolog\\Handler\\StreamHandler->write(Array)\n
#4 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\\Handler\\RotatingFileHandler->write(Array)\n
#5 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)\n
#6 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php(707): Monolog\\Logger->addRecord(400, 'fwrite(): write...', Array)\n
#7 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php(176): Monolog\\Logger->error('fwrite(): write...', Array)\n
#8 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php(87): Illuminate\\Log\\Logger->writeLog('error', 'fwrite(): write...', Array)\n
#9 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(500): Illuminate\\Log\\Logger->error('fwrite(): write...', Array)\n
#10 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(116): Illuminate\\Log\\LogManager->error('fwrite(): write...', Array)\n
#11 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/app/Exceptions/Handler.php(37): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(ErrorException))\n
#12 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(314): App\\Exceptions\\Handler->report(Object(ErrorException))\n
#13 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(118): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(ErrorException))\n
#14 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/index.php(60): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n
#15 {main}\n
"} \n
"""
]
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
*
* @author Jordi Boggiano <[email protected]>
* @author Christophe Coevoet <[email protected]>
*/
abstract class AbstractProcessingHandler extends AbstractHandler
{
/**
* {@inheritdoc}
*/
public function handle(array $record)
{
if (!$this->isHandling($record)) {
return false;
}
$record = $this->processRecord($record);
$record['formatted'] = $this->getFormatter()->format($record);
$this->write($record);
return false === $this->bubble;
}
/**
* Writes the record down to the log of the implementing handler
*
* @param array $record
* @return void
*/
abstract protected function write(array $record);
/**
* Processes a record.
*
* @param array $record
* @return array
*/
protected function processRecord(array $record)
{
Arguments
array:8 [
"message" => "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
"context" => array:1 [
"exception" => ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}
]
"level" => 400
"level_name" => "ERROR"
"channel" => "local"
"datetime" => DateTime @1711719915 {#43
date: 2024-03-29 13:45:15.299907 UTC (+00:00)
}
"extra" => []
"formatted" => """
[2024-03-29 13:45:15] local.ERROR: fwrite(): write of 4096 bytes failed with errno=28 No space left on device {"exception":"[object] (ErrorException(code: 0): fwrite(): write of 4096 bytes failed with errno=28 No space left on device at /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:130)\n
[stacktrace]\n
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'fwrite(): write...', '/home/newsitewa...', 130, Array)\n
#1 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(130): fwrite(Resource id #57, '[2024-03-29 13:...')\n
#2 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(116): Monolog\\Handler\\StreamHandler->streamWrite(Resource id #57, Array)\n
#3 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(119): Monolog\\Handler\\StreamHandler->write(Array)\n
#4 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\\Handler\\RotatingFileHandler->write(Array)\n
#5 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)\n
#6 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php(707): Monolog\\Logger->addRecord(400, 'fwrite(): write...', Array)\n
#7 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php(176): Monolog\\Logger->error('fwrite(): write...', Array)\n
#8 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php(87): Illuminate\\Log\\Logger->writeLog('error', 'fwrite(): write...', Array)\n
#9 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(500): Illuminate\\Log\\Logger->error('fwrite(): write...', Array)\n
#10 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(116): Illuminate\\Log\\LogManager->error('fwrite(): write...', Array)\n
#11 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/app/Exceptions/Handler.php(37): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(ErrorException))\n
#12 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(314): App\\Exceptions\\Handler->report(Object(ErrorException))\n
#13 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(118): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(ErrorException))\n
#14 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/index.php(60): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n
#15 {main}\n
"} \n
"""
]
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php
}
$ts->setTimezone(static::$timezone);
$record = array(
'message' => (string) $message,
'context' => $context,
'level' => $level,
'level_name' => $levelName,
'channel' => $this->name,
'datetime' => $ts,
'extra' => array(),
);
try {
foreach ($this->processors as $processor) {
$record = call_user_func($processor, $record);
}
while ($handler = current($this->handlers)) {
if (true === $handler->handle($record)) {
break;
}
next($this->handlers);
}
} catch (Exception $e) {
$this->handleException($e, $record);
}
return true;
}
/**
* Ends a log cycle and frees all resources used by handlers.
*
* Closing a Handler means flushing all buffers and freeing any open resources/handles.
* Handlers that have been closed should be able to accept log records again and re-open
* themselves on demand, but this may not always be possible depending on implementation.
*
* This is useful at the end of a request and will be called automatically on every handler
Arguments
array:8 [
"message" => "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
"context" => array:1 [
"exception" => ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}
]
"level" => 400
"level_name" => "ERROR"
"channel" => "local"
"datetime" => DateTime @1711719915 {#43
date: 2024-03-29 13:45:15.299907 UTC (+00:00)
}
"extra" => []
"formatted" => """
[2024-03-29 13:45:15] local.ERROR: fwrite(): write of 4096 bytes failed with errno=28 No space left on device {"exception":"[object] (ErrorException(code: 0): fwrite(): write of 4096 bytes failed with errno=28 No space left on device at /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:130)\n
[stacktrace]\n
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'fwrite(): write...', '/home/newsitewa...', 130, Array)\n
#1 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(130): fwrite(Resource id #57, '[2024-03-29 13:...')\n
#2 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(116): Monolog\\Handler\\StreamHandler->streamWrite(Resource id #57, Array)\n
#3 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(119): Monolog\\Handler\\StreamHandler->write(Array)\n
#4 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\\Handler\\RotatingFileHandler->write(Array)\n
#5 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)\n
#6 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php(707): Monolog\\Logger->addRecord(400, 'fwrite(): write...', Array)\n
#7 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php(176): Monolog\\Logger->error('fwrite(): write...', Array)\n
#8 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php(87): Illuminate\\Log\\Logger->writeLog('error', 'fwrite(): write...', Array)\n
#9 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(500): Illuminate\\Log\\Logger->error('fwrite(): write...', Array)\n
#10 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(116): Illuminate\\Log\\LogManager->error('fwrite(): write...', Array)\n
#11 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/app/Exceptions/Handler.php(37): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(ErrorException))\n
#12 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(314): App\\Exceptions\\Handler->report(Object(ErrorException))\n
#13 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(118): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(ErrorException))\n
#14 /home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/index.php(60): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n
#15 {main}\n
"} \n
"""
]
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Logger.php
* @param array $context The log context
* @return bool Whether the record has been processed
*/
public function err($message, array $context = array())
{
return $this->addRecord(static::ERROR, $message, $context);
}
/**
* Adds a log record at the ERROR level.
*
* This method allows for compatibility with common interfaces.
*
* @param string $message The log message
* @param array $context The log context
* @return bool Whether the record has been processed
*/
public function error($message, array $context = array())
{
return $this->addRecord(static::ERROR, $message, $context);
}
/**
* Adds a log record at the CRITICAL level.
*
* This method allows for compatibility with common interfaces.
*
* @param string $message The log message
* @param array $context The log context
* @return bool Whether the record has been processed
*/
public function crit($message, array $context = array())
{
return $this->addRecord(static::CRITICAL, $message, $context);
}
/**
* Adds a log record at the CRITICAL level.
*
* This method allows for compatibility with common interfaces.
Arguments
400
"fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
array:1 [
"exception" => ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}
]
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php
* @return void
*/
public function write($level, $message, array $context = [])
{
$this->writeLog($level, $message, $context);
}
/**
* Write a message to the log.
*
* @param string $level
* @param string $message
* @param array $context
* @return void
*/
protected function writeLog($level, $message, $context)
{
$this->fireLogEvent($level, $message = $this->formatMessage($message), $context);
$this->logger->{$level}($message, $context);
}
/**
* Register a new callback handler for when a log event is triggered.
*
* @param \Closure $callback
* @return void
*
* @throws \RuntimeException
*/
public function listen(Closure $callback)
{
if (! isset($this->dispatcher)) {
throw new RuntimeException('Events dispatcher has not been set.');
}
$this->dispatcher->listen(MessageLogged::class, $callback);
}
/**
Arguments
"fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
array:1 [
"exception" => ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}
]
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/Logger.php
*
* @param string $message
* @param array $context
* @return void
*/
public function critical($message, array $context = [])
{
$this->writeLog(__FUNCTION__, $message, $context);
}
/**
* Log an error message to the logs.
*
* @param string $message
* @param array $context
* @return void
*/
public function error($message, array $context = [])
{
$this->writeLog(__FUNCTION__, $message, $context);
}
/**
* Log a warning message to the logs.
*
* @param string $message
* @param array $context
* @return void
*/
public function warning($message, array $context = [])
{
$this->writeLog(__FUNCTION__, $message, $context);
}
/**
* Log a notice to the logs.
*
* @param string $message
* @param array $context
* @return void
Arguments
"error"
"fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
array:1 [
"exception" => ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}
]
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Log/LogManager.php
*
* @return void
*/
public function critical($message, array $context = [])
{
$this->driver()->critical($message, $context);
}
/**
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message
* @param array $context
*
* @return void
*/
public function error($message, array $context = [])
{
$this->driver()->error($message, $context);
}
/**
* Exceptional occurrences that are not errors.
*
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
* @param string $message
* @param array $context
*
* @return void
*/
public function warning($message, array $context = [])
{
$this->driver()->warning($message, $context);
}
/**
* Normal but significant events.
Arguments
"fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
array:1 [
"exception" => ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}
]
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
*/
public function report(Exception $e)
{
if ($this->shouldntReport($e)) {
return;
}
if (is_callable($reportCallable = [$e, 'report'])) {
return $this->container->call($reportCallable);
}
try {
$logger = $this->container->make(LoggerInterface::class);
} catch (Exception $ex) {
throw $e;
}
$logger->error(
$e->getMessage(),
array_merge($this->context(), ['exception' => $e]
));
}
/**
* Determine if the exception should be reported.
*
* @param \Exception $e
* @return bool
*/
public function shouldReport(Exception $e)
{
return ! $this->shouldntReport($e);
}
/**
* Determine if the exception is in the "do not report" list.
*
* @param \Exception $e
* @return bool
*/
Arguments
"fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
array:1 [
"exception" => ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}
]
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/app/Exceptions/Handler.php
/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array
*/
protected $dontFlash = [
'password',
'password_confirmation',
];
/**
* Report or log an exception.
*
* @param \Exception $exception
* @return void
*/
public function report(Exception $exception)
{
parent::report($exception);
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
{
return parent::render($request, $exception);
}
}
Arguments
ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}
/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php
}
/**
* Handle an uncaught exception from the application.
*
* Note: Most exceptions can be handled via the try / catch block in
* the HTTP and Console kernels. But, fatal error exceptions must
* be handled differently since they are not normal exceptions.
*
* @param \Throwable $e
* @return void
*/
public function handleException($e)
{
if (! $e instanceof Exception) {
$e = new FatalThrowableError($e);
}
try {
$this->getExceptionHandler()->report($e);
} catch (Exception $e) {
//
}
if ($this->app->runningInConsole()) {
$this->renderForConsole($e);
} else {
$this->renderHttpResponse($e);
}
}
/**
* Render an exception to the console.
*
* @param \Exception $e
* @return void
*/
protected function renderForConsole(Exception $e)
{
$this->getExceptionHandler()->renderForConsole(new ConsoleOutput, $e);
Arguments
ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}
[internal]
Arguments
ErrorException {#219
#message: "fwrite(): write of 4096 bytes failed with errno=28 No space left on device"
#code: 0
#file: "/home/newsitewatchlist/spidermanacrossthespiderversemovie.com/review/engine/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
#line: 130
#severity: E_NOTICE
}