aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/NewMessage.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/NewMessage.java')
-rw-r--r--juick-www/src/main/java/com/juick/www/NewMessage.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/juick-www/src/main/java/com/juick/www/NewMessage.java b/juick-www/src/main/java/com/juick/www/NewMessage.java
index f6e8ec47..c066c5b3 100644
--- a/juick-www/src/main/java/com/juick/www/NewMessage.java
+++ b/juick-www/src/main/java/com/juick/www/NewMessage.java
@@ -48,7 +48,6 @@ import java.util.ArrayList;
import java.util.List;
/**
- *
* @author Ugnich Anton
*/
public class NewMessage {
@@ -185,7 +184,7 @@ public class NewMessage {
}
String paramImg = request.getParameter("img");
- if (attachmentFName == null && paramImg != null && paramImg.length() > 10 ) {
+ if (attachmentFName == null && paramImg != null && paramImg.length() > 10) {
try {
URL imgUrl = new URL(paramImg);
attachmentFName = Utils.downloadImage(imgUrl);
@@ -225,7 +224,7 @@ public class NewMessage {
try {
xmsg.addExtension(new OobX(new URI(attachmentURL)));
} catch (URISyntaxException e) {
- logger.warn("invalid uri: " + attachmentURL, e);
+ logger.warn("invalid uri: {} exception {}", attachmentURL, e);
}
}
if (xmpp != null) {
@@ -296,8 +295,8 @@ public class NewMessage {
out.println("<p class=\"social\"><a href=\"https://plus.google.com/share?url=" + url + "\" class=\"ico32-gp sharenew\">Отправить в Google+</a></p>");
out.println("<p>Ссылка на сообщение: <a href=\"http://juick.com/" + mid + "\">http://juick.com/" + mid + "</a></p>");
out.println("</section>");
-
- PageTemplates.pageHomeColumn(out, sql, visitor);
+
+ PageTemplates.pageHomeColumn(out, sql, visitor);
PageTemplates.pageFooter(request, out, visitor, false);
PageTemplates.pageEnd(out);
@@ -393,7 +392,7 @@ public class NewMessage {
try {
xmsg.addExtension(new OobX(new URI(attachmentURL)));
} catch (URISyntaxException e) {
- logger.warn("invalid uri: " + attachmentURL, e);
+ logger.warn("invalid uri: {}, exception {}", attachmentURL, e);
}
}