Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
4125f22b
Commit
4125f22b
authored
Mar 14, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sed debug level 4 for socket data received
parent
2dab017e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
debomatic-webui/public/javascripts/main.js
debomatic-webui/public/javascripts/main.js
+2
-1
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+6
-6
debomatic-webui/public/javascripts/page_generic.js
debomatic-webui/public/javascripts/page_generic.js
+3
-3
No files found.
debomatic-webui/public/javascripts/main.js
View file @
4125f22b
...
@@ -8,7 +8,8 @@ var socket = io.connect('//' + config.hostname );
...
@@ -8,7 +8,8 @@ var socket = io.connect('//' + config.hostname );
level: 1 - user interaction
level: 1 - user interaction
2 - automatic changes
2 - automatic changes
3 - socket interaction
3 - socket emit data
4 - socket received data
*/
*/
var
debug
=
function
()
{
var
debug
=
function
()
{
if
(
arguments
.
length
==
0
)
{
if
(
arguments
.
length
==
0
)
{
...
...
debomatic-webui/public/javascripts/page_distribution.js
View file @
4125f22b
...
@@ -434,17 +434,17 @@ function Page_Distrubion(socket)
...
@@ -434,17 +434,17 @@ function Page_Distrubion(socket)
this
.
start
=
function
()
{
this
.
start
=
function
()
{
socket
.
on
(
config
.
events
.
error
,
function
(
socket_error
)
{
socket
.
on
(
config
.
events
.
error
,
function
(
socket_error
)
{
debug
(
3
,
"
socket > received event:
"
,
config
.
events
.
error
,
"
data:
"
,
socket_error
)
debug
(
4
,
"
socket > received event:
"
,
config
.
events
.
error
,
"
data:
"
,
socket_error
)
error
.
set
(
socket_error
)
error
.
set
(
socket_error
)
})
})
socket
.
on
(
_e
.
distribution_packages
.
set
,
function
(
socket_data
){
socket
.
on
(
_e
.
distribution_packages
.
set
,
function
(
socket_data
){
debug
(
3
,
"
socket > received event:
"
,
_e
.
distribution_packages
.
set
,
"
data:
"
,
socket_data
)
debug
(
4
,
"
socket > received event:
"
,
_e
.
distribution_packages
.
set
,
"
data:
"
,
socket_data
)
packages
.
set
(
socket_data
)
packages
.
set
(
socket_data
)
})
})
socket
.
on
(
_e
.
distribution_packages
.
status
,
function
(
socket_data
){
socket
.
on
(
_e
.
distribution_packages
.
status
,
function
(
socket_data
){
debug
(
3
,
"
socket > received event:
"
,
_e
.
distribution_packages
.
set
,
"
data:
"
,
socket_data
)
debug
(
4
,
"
socket > received event:
"
,
_e
.
distribution_packages
.
set
,
"
data:
"
,
socket_data
)
packages
.
set_status
(
socket_data
)
packages
.
set_status
(
socket_data
)
sticky
.
set_status
(
socket_data
)
sticky
.
set_status
(
socket_data
)
})
})
...
@@ -455,17 +455,17 @@ function Page_Distrubion(socket)
...
@@ -455,17 +455,17 @@ function Page_Distrubion(socket)
})
})
socket
.
on
(
_e
.
package_files_list
.
set
,
function
(
socket_data
){
socket
.
on
(
_e
.
package_files_list
.
set
,
function
(
socket_data
){
debug
(
3
,
"
socket > received event:
"
,
_e
.
package_files_list
.
set
,
"
data:
"
,
socket_data
)
debug
(
4
,
"
socket > received event:
"
,
_e
.
package_files_list
.
set
,
"
data:
"
,
socket_data
)
files
.
set
(
socket_data
)
files
.
set
(
socket_data
)
})
})
socket
.
on
(
_e
.
file
.
set
,
function
(
socket_data
)
{
socket
.
on
(
_e
.
file
.
set
,
function
(
socket_data
)
{
debug
(
3
,
"
socket > received event:
"
,
_e
.
file
.
set
,
"
data:
"
,
socket_data
)
debug
(
4
,
"
socket > received event:
"
,
_e
.
file
.
set
,
"
data:
"
,
socket_data
)
file
.
set
(
socket_data
)
file
.
set
(
socket_data
)
})
})
socket
.
on
(
_e
.
file_newcontent
,
function
(
socket_data
)
{
socket
.
on
(
_e
.
file_newcontent
,
function
(
socket_data
)
{
debug
(
3
,
"
socket > received event:
"
,
_e
.
file_newcontent
,
"
data:
"
,
socket_data
)
debug
(
4
,
"
socket > received event:
"
,
_e
.
file_newcontent
,
"
data:
"
,
socket_data
)
new_lines
.
push
(
socket_data
.
file
.
new_content
)
new_lines
.
push
(
socket_data
.
file
.
new_content
)
})
})
...
...
debomatic-webui/public/javascripts/page_generic.js
View file @
4125f22b
...
@@ -95,17 +95,17 @@ function Page_Generic()
...
@@ -95,17 +95,17 @@ function Page_Generic()
// update distributions
// update distributions
socket
.
on
(
_e
.
broadcast
.
distributions
,
function
(
socket_distributions
)
{
socket
.
on
(
_e
.
broadcast
.
distributions
,
function
(
socket_distributions
)
{
debug
(
3
,
"
socket > received event:
"
,
_e
.
broadcast
.
distributions
,
"
data:
"
,
socket_distributions
)
debug
(
4
,
"
socket > received event:
"
,
_e
.
broadcast
.
distributions
,
"
data:
"
,
socket_distributions
)
distributions
.
set
(
socket_distributions
)
distributions
.
set
(
socket_distributions
)
});
});
socket
.
on
(
_e
.
client
.
status
,
function
(
packages_status
)
{
socket
.
on
(
_e
.
client
.
status
,
function
(
packages_status
)
{
debug
(
3
,
"
socket > received event:
"
,
_e
.
client
.
status
,
"
data:
"
,
packages_status
)
debug
(
4
,
"
socket > received event:
"
,
_e
.
client
.
status
,
"
data:
"
,
packages_status
)
status
.
set
(
packages_status
)
status
.
set
(
packages_status
)
})
})
socket
.
on
(
_e
.
broadcast
.
status_update
,
function
(
package_status
)
{
socket
.
on
(
_e
.
broadcast
.
status_update
,
function
(
package_status
)
{
debug
(
3
,
"
socket > received event:
"
,
_e
.
broadcast
.
status_update
,
"
data:
"
,
packages_status
)
debug
(
4
,
"
socket > received event:
"
,
_e
.
broadcast
.
status_update
,
"
data:
"
,
packages_status
)
status
.
update
(
package_status
)
status
.
update
(
package_status
)
})
})
...
...
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