Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 399
Zeile 205... Zeile 205...
205
     */
205
     */
206
    protected function writeOutput(Job $job, $status)
206
    protected function writeOutput(Job $job, $status)
207
    {
207
    {
208
        $this->output->write(sprintf(
208
        $this->output->write(sprintf(
209
            '  <fg=gray>%s</> %s%s',
209
            '  <fg=gray>%s</> %s%s',
210
            Carbon::now()->format('Y-m-d H:i:s'),
210
            $this->now()->format('Y-m-d H:i:s'),
211
            $job->resolveName(),
211
            $job->resolveName(),
212
            $this->output->isVerbose()
212
            $this->output->isVerbose()
213
                ? sprintf(' <fg=gray>%s</>', $job->getJobId())
213
                ? sprintf(' <fg=gray>%s</>', $job->getJobId())
214
                : ''
214
                : ''
215
        ));
215
        ));
Zeile 241... Zeile 241...
241
            default => ' <fg=red;options=bold>FAIL</>',
241
            default => ' <fg=red;options=bold>FAIL</>',
242
        });
242
        });
243
    }
243
    }
Zeile 244... Zeile 244...
244
 
244
 
-
 
245
    /**
-
 
246
     * Get the current date / time.
-
 
247
     *
-
 
248
     * @return \Illuminate\Support\Carbon
-
 
249
     */
-
 
250
    protected function now()
-
 
251
    {
-
 
252
        $queueTimezone = $this->laravel['config']->get('queue.output_timezone');
-
 
253
 
-
 
254
        if ($queueTimezone &&
-
 
255
            $queueTimezone !== $this->laravel['config']->get('app.timezone')) {
-
 
256
            return Carbon::now()->setTimezone($queueTimezone);
-
 
257
        }
-
 
258
 
-
 
259
        return Carbon::now();
-
 
260
    }
-
 
261
 
245
    /**
262
    /**
246
     * Store a failed job event.
263
     * Store a failed job event.
247
     *
264
     *
248
     * @param  \Illuminate\Queue\Events\JobFailed  $event
265
     * @param  \Illuminate\Queue\Events\JobFailed  $event
249
     * @return void
266
     * @return void