title('Update IP'); try { $io->info('Obtaining IP and updating database'); $this->service->update(); $io->info('Done'); return Command::SUCCESS; } catch (PDOException $e) { $this->logger->warning($e); return Command::FAILURE; } catch (Exception $e) { $this->logger->error($e); return Command::FAILURE; } } }