Examples of warn()


Examples of org.olat.core.logging.OLog.warn()

      throw new OLATRuntimeException("Wiki page couldn't be read! Pagename:"+leaf.getName(), e);
    }
    String pageName = p.getProperty(WikiManager.PAGENAME);
    if(pageName == null){
      OLog log = Tracing.createLoggerFor(Wiki.class);
      log.warn("wiki properties page is persent but without content. Name:"+leaf.getName());
      return null;
    }
    WikiPage page = new WikiPage(pageName);
    page.setCreationTime(p.getProperty(WikiManager.C_TIME));
    page.setVersion(p.getProperty(WikiManager.VERSION));
View Full Code Here

Examples of org.olat.core.logging.OLog.warn()

          textElement.setErrorKey("form.name.xing.error", null);
          result = false;
        } else {
          // In case of any exception, assume that the given MSN name is valid (The opposite would block easily upon network problems), and inform the user about this.
          textElement.setExampleKey("form.example.xingname.notvalidated", null);
          log.warn("Xing name validation: Expected HTTP status 200 or 301, but got " + httpStatusCode);
          result = true;
        }
      } catch (IllegalArgumentException e) {
        // The xing name is not url compatible (e.g. contains whitespaces)
        textElement.setErrorKey("form.xingname.notvalid", null);
View Full Code Here

Examples of org.olat.core.logging.OLog.warn()

        textElement.setErrorKey("form.xingname.notvalid", null);
        result = false;
      } catch (Exception e) {
        // In case of any exception, assume that the given MSN name is valid (The opposite would block easily upon network problems), and inform the user about this.
        textElement.setExampleKey("form.example.xingname.notvalidated", null);
        log.warn("Xing name validation: Exception: " + e.getMessage());
        result = true;
      }
    } else {
      result = true;
    }
View Full Code Here

Examples of org.olat.core.logging.OLog.warn()

          textElement.setErrorKey("form.name.msn.error", null);
          result = false;
        } else {
          // For HTTP status codes other than 301 and 500 we will assume that the given MSN name is valid, but inform the user about this.
          textElement.setExampleKey("form.example.msnname.notvalidated", null);
          log.warn("MSN name validation: Expected HTTP status 301 or 500, but got " + httpStatusCode);
          result = true;
        }
      } catch (Exception e) {
        // In case of any exception, assume that the given MSN name is valid (The opposite would block easily upon network problems), and inform the user about this.
        textElement.setExampleKey("form.example.msnname.notvalidated", null);
View Full Code Here

Examples of org.olat.core.logging.OLog.warn()

          result = true;
        }
      } catch (Exception e) {
        // In case of any exception, assume that the given MSN name is valid (The opposite would block easily upon network problems), and inform the user about this.
        textElement.setExampleKey("form.example.msnname.notvalidated", null);
        log.warn("MSN name validation: Exception: " + e.getMessage());
        result = true;
      }
    } else {
      result = true;
    }
View Full Code Here

Examples of org.olat.core.logging.OLog.warn()

          textElement.setErrorKey("form.name.icq.error", null);
          result = false;
        } else {
          // For HTTP status codes other than 200 and 302 we will silently assume that the given ICQ name is valid, but inform the user about this.
          textElement.setExampleKey("form.example.icqname.notvalidated", null);
          log.warn("ICQ name validation: Expected HTTP status 200 or 301, but got " + httpStatusCode);
          result = true;
        }
      } catch (Exception e) {
        // In case of any exception, assume that the given ICQ name is valid (The opposite would block easily upon network problems), and inform the user about this.
        textElement.setExampleKey("form.example.icqname.notvalidated", null);
View Full Code Here

Examples of org.olat.core.logging.OLog.warn()

          result = true;
        }
      } catch (Exception e) {
        // In case of any exception, assume that the given ICQ name is valid (The opposite would block easily upon network problems), and inform the user about this.
        textElement.setExampleKey("form.example.icqname.notvalidated", null);
        log.warn("ICQ name validation: Exception: " + e.getMessage());
        result = true;
      }
    } else {
      result = true;
    }
View Full Code Here

Examples of org.openqa.jetty.log.LogImpl.warn()

                    continue;
               
                if ("on".equals(request.getParameter("LSS"+s)))
                {
                    if(!sinks[s].isStarted())
                        try{sinks[s].start();}catch(Exception e){log.warn(e);}
                }
                else
                {
                    if(sinks[s].isStarted())
                        try{sinks[s].stop();}catch(InterruptedException e){}
View Full Code Here

Examples of org.pentaho.platform.util.logging.SimpleLogger.warn()

    int logLevel = logger.getLoggingLevel();
    String logLevelName = logger.getLogLevelName( logLevel );
    int logLevelWithParam = logger.getLogLevel( logLevelName );
    Assert.assertEquals( logLevelWithParam, ILogger.WARN );

    logger.warn( "This is a warning with class as an object" + ILogger.WARN ); //$NON-NLS-1$
    logger.warn( "This is a warning with class as an object" + +ILogger.WARN, new Throwable() ); //$NON-NLS-1$

    logger.debug( "This is a debug with class as an object" + ILogger.DEBUG ); //$NON-NLS-1$
    logger.debug( "This is a debug with class as an object" + ILogger.DEBUG, new Throwable() ); //$NON-NLS-1$
View Full Code Here

Examples of org.slf4j.Logger.warn()

      Iterator<DataStoreFactorySpi> all = DataStoreFinder.getAllDataStores();
      Logger log = LoggerFactory.getLogger(DataStoreFactory.class);
      while (all.hasNext()) {
        DataStoreFactorySpi factory = all.next();
        if (!factory.isAvailable()) {
          log.warn("Datastore factory " + factory.getDisplayName() + "(" + factory.getDescription()
              + ") is not available");
          if (missingStr.length() != 0) {
            missingStr.append(",");
          }
          missingStr.append(factory.getDisplayName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.