Package org.olat.core.logging

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


          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

        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

          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

          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

          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

          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

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.