Package net.sourceforge.pebble.domain

Examples of net.sourceforge.pebble.domain.Blog.warn()


        if (staticPage != null) {
          service.unlock(staticPage);
          blog.info("Static page <a href=\"" + staticPage.getLocalPermalink() + "\">" + staticPage.getTitle() + "</a> unlocked.");
        }
      } catch (StaticPageServiceException e) {
        blog.warn(e.getClass().getName() + " Error while unlocking static page - " + StringUtils.transformHTML(e.getMessage()));
        log.warn("Error while unlocking static page", e);
      }
    }

    return new RedirectView(blog.getUrl() + "viewStaticPages.secureaction");
View Full Code Here


        int rc = httpClient.executeMethod(method);
        if (rc != HttpServletResponse.SC_NO_CONTENT) {
          String errorMessage = "Unexpected response code received from hub: " + hub + " - " + rc + " " +
              method.getStatusText();
          log.warn(errorMessage);
          blog.warn(errorMessage);
        }
      } catch (IOException e) {
        log.error("Error posting to hub: " + hub, e);
        blog.warn("Error publishing to hub: " + hub + ". Message: " + e.getMessage());
      }
View Full Code Here

          log.warn(errorMessage);
          blog.warn(errorMessage);
        }
      } catch (IOException e) {
        log.error("Error posting to hub: " + hub, e);
        blog.warn("Error publishing to hub: " + hub + ". Message: " + e.getMessage());
      }
    }
  }

  private Collection<String> getHubs(Blog blog) {
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.