Changeset 29591

Show
Ignore:
Timestamp:
01/24/08 11:39:34 (10 months ago)
Author:
jcarsique
Message:

improve some logs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.core/branches/1.4/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/impl/DocumentModelImpl.java

    r29429 r29591  
    443443                // TODO: how to handle exceptions? 
    444444                log.error("ERROR getting the data model: " + schema + " for " 
    445                         + ref); 
     445                        + ref,e); 
    446446            } 
    447447        } 
     
    627627            } catch (Exception e) { 
    628628                // XXX this exception shouldn't be swallowed! 
    629                 log.error("ERROR getting the ACP for " + ref); 
     629                log.error("ERROR getting the ACP for " + ref,e); 
    630630            } 
    631631        } 
     
    646646        } catch (Exception e) { 
    647647            // XXX this exception shouldn't be swallowed! 
    648             log.error("ERROR setting the ACP for " + ref); 
     648            log.error("ERROR setting the ACP for " + ref,e); 
    649649        } 
    650650    } 
     
    13981398            type = Framework.getService(SchemaManager.class).getDocumentType(getType()); 
    13991399        } catch (Exception e) { 
    1400             e.printStackTrace(); 
     1400            log.error(e); 
    14011401        } 
    14021402        Collection<Schema> schemas = type.getSchemas();