Subversion Repositories SmartDukaan

Rev

Rev 35610 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35610 Rev 35611
Line 33... Line 33...
33
            LOGGER.info("resolveOldEscalationTickets called with dryRun={}", dryRun);
33
            LOGGER.info("resolveOldEscalationTickets called with dryRun={}", dryRun);
34
            String result = runOnceTasks.resolveOldEscalationTickets(dryRun);
34
            String result = runOnceTasks.resolveOldEscalationTickets(dryRun);
35
            return ResponseEntity.ok(result);
35
            return ResponseEntity.ok(result);
36
        } catch (Exception e) {
36
        } catch (Exception e) {
37
            LOGGER.error("Error in resolveOldEscalationTickets", e);
37
            LOGGER.error("Error in resolveOldEscalationTickets", e);
38
            return ResponseEntity.internalServerError().body("Error: " + e.getMessage());
38
            return ResponseEntity.status(500).body("Error: " + e.getMessage());
39
        }
39
        }
40
    }
40
    }
41
}
41
}