use Sammy.log for logging

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1360438 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-07-11 22:03:16 +00:00
parent 69f92105d5
commit 71da382051
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ define("utils",["jquery","i18n","jquery.tmpl"], function() {
if ( !window.archivaJavascriptLog ){
return;
}
Sammy.log(message);
return;
if (typeof window.console != 'undefined' && typeof window.console.log != 'undefined') {
console.log(message);
} else {