Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
e802241c
Commit
e802241c
authored
Jul 06, 2014
by
Wandenberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #148 making log messages works when firebug is opened after the page was loaded on Firefox
parent
7b35b05d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
13 deletions
+23
-13
pushstream.js
misc/js/pushstream.js
+23
-13
No files found.
misc/js/pushstream.js
View file @
e802241c
...
...
@@ -158,24 +158,34 @@ Authors: Wandenberg Peixoto <wandenberg@gmail.com>, Rogério Carvalho Schneider
debug
:
function
()
{
if
(
PushStream
.
LOG_LEVEL
===
'
debug
'
)
{
Log4js
.
_log
.
apply
(
Log4js
.
_log
,
arguments
);
}},
info
:
function
()
{
if
((
PushStream
.
LOG_LEVEL
===
'
info
'
)
||
(
PushStream
.
LOG_LEVEL
===
'
debug
'
))
{
Log4js
.
_log
.
apply
(
Log4js
.
_log
,
arguments
);
}},
error
:
function
()
{
Log4js
.
_log
.
apply
(
Log4js
.
_log
,
arguments
);
},
_initLogger
:
function
()
{
var
console
=
window
.
console
;
if
(
console
&&
console
.
log
)
{
if
(
console
.
log
.
apply
)
{
Log4js
.
logger
=
console
.
log
;
}
else
if
((
typeof
console
.
log
===
"
object
"
)
&&
Function
.
prototype
.
bind
)
{
Log4js
.
logger
=
Function
.
prototype
.
bind
.
call
(
console
.
log
,
console
);
}
else
if
((
typeof
console
.
log
===
"
object
"
)
&&
Function
.
prototype
.
call
)
{
Log4js
.
logger
=
function
()
{
Function
.
prototype
.
call
.
call
(
console
.
log
,
console
,
Array
.
prototype
.
slice
.
call
(
arguments
));
};
}
}
},
_log
:
function
()
{
if
(
!
Log4js
.
logger
)
{
var
console
=
window
.
console
;
if
(
console
&&
console
.
log
)
{
if
(
console
.
log
.
apply
)
{
Log4js
.
logger
=
console
.
log
;
}
else
if
((
typeof
console
.
log
===
"
object
"
)
&&
Function
.
prototype
.
bind
)
{
Log4js
.
logger
=
Function
.
prototype
.
bind
.
call
(
console
.
log
,
console
);
}
else
if
((
typeof
console
.
log
===
"
object
"
)
&&
Function
.
prototype
.
call
)
{
Log4js
.
logger
=
function
()
{
Function
.
prototype
.
call
.
call
(
console
.
log
,
console
,
Array
.
prototype
.
slice
.
call
(
arguments
));
};
}
}
Log4js
.
_initLogger
();
}
if
(
Log4js
.
logger
)
{
Log4js
.
logger
.
apply
(
window
.
console
,
arguments
);
try
{
Log4js
.
logger
.
apply
(
window
.
console
,
arguments
);
}
catch
(
e
)
{
Log4js
.
_initLogger
();
if
(
Log4js
.
logger
)
{
Log4js
.
logger
.
apply
(
window
.
console
,
arguments
);
}
}
}
var
logElement
=
document
.
getElementById
(
PushStream
.
LOG_OUTPUT_ELEMENT_ID
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment