Revision 6353
Added by Chris Jones over 13 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
272 | 272 |
List<LogEntry> logs = new Vector<LogEntry>(); |
273 | 273 |
IdentifierManager im = IdentifierManager.getInstance(); |
274 | 274 |
EventLog el = EventLog.getInstance(); |
275 |
if (fromDate == null) {
|
|
275 |
if ( fromDate == null ) {
|
|
276 | 276 |
logMetacat.debug("setting fromdate from null"); |
277 | 277 |
fromDate = new Date(1); |
278 | 278 |
} |
279 |
if (toDate == null) {
|
|
279 |
if ( toDate == null ) {
|
|
280 | 280 |
logMetacat.debug("setting todate from null"); |
281 | 281 |
toDate = new Date(); |
282 | 282 |
} |
283 | 283 |
|
284 |
if ( start == null ) { |
|
285 |
start = 0; |
|
286 |
|
|
287 |
} |
|
288 |
|
|
289 |
if ( count == null ) { |
|
290 |
count = 1000; |
|
291 |
|
|
292 |
} |
|
293 |
|
|
284 | 294 |
logMetacat.debug("fromDate: " + fromDate); |
285 | 295 |
logMetacat.debug("toDate: " + toDate); |
286 | 296 |
|
Also available in: Unified diff
In D1NodeService.getLogRecords(), don't pass in null start and count params - set them to the defaults (0 and 1000).