Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
emiMobile
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Mac Stephens
emiMobile
Commits
aa8dc61b
Commit
aa8dc61b
authored
Aug 31, 2026
by
Mac Stephens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove error message test console logs, update log level for broadcastall
parent
fad3b6f3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
Ws.DataModel.pas
emiMobileServer/Source/Ws.DataModel.pas
+2
-2
ConnectionModule.pas
webEMIMobile/ConnectionModule.pas
+1
-7
No files found.
emiMobileServer/Source/Ws.DataModel.pas
View file @
aa8dc61b
...
...
@@ -83,13 +83,13 @@ end;
procedure
TWsDataModel
.
BroadcastAll
;
begin
Logger
.
Log
(
3
,
'WsDataModel: BroadcastAll initiated'
);
Logger
.
Log
(
5
,
'WsDataModel: BroadcastAll initiated'
);
try
FBroadcast
(
BuildBadgeCountsJson
);
except
on
E
:
Exception
do
Logger
.
Log
(
2
,
'WsDataModel BADGE_COUNTS error: '
+
E
.
Message
);
end
;
try
FBroadcast
(
BuildUnitMapJson
);
except
on
E
:
Exception
do
Logger
.
Log
(
2
,
'WsDataModel UNIT_MAP error: '
+
E
.
Message
);
end
;
try
FBroadcast
(
BuildComplaintMapJson
);
except
on
E
:
Exception
do
Logger
.
Log
(
2
,
'WsDataModel COMPLAINT_MAP error: '
+
E
.
Message
);
end
;
try
FBroadcast
(
BuildUnitListJson
);
except
on
E
:
Exception
do
Logger
.
Log
(
2
,
'WsDataModel UNIT_LIST error: '
+
E
.
Message
);
end
;
try
FBroadcast
(
BuildComplaintListJson
);
except
on
E
:
Exception
do
Logger
.
Log
(
2
,
'WsDataModel COMPLAINT_LIST error: '
+
E
.
Message
);
end
;
Logger
.
Log
(
3
,
'WsDataModel: BroadcastAll end'
);
Logger
.
Log
(
5
,
'WsDataModel: BroadcastAll end'
);
end
;
function
TWsDataModel
.
BuildBadgeCountsJson
:
string
;
...
...
webEMIMobile/ConnectionModule.pas
View file @
aa8dc61b
...
...
@@ -80,12 +80,9 @@ procedure TDMConnection.InitApp(SuccessProc: TSuccessProc;
if
Config
.
WsUrl
<>
''
then
FWsUrl
:=
Config
.
WsUrl
;
console
.
log
(
'InitApp: opening AuthConnection'
);
AuthConnection
.
Open
(
procedure
begin
console
.
log
(
'InitApp: AuthConnection opened'
);
VerifyVersion
(
SuccessProc
);
end
);
end
;
...
...
@@ -97,7 +94,6 @@ end;
procedure
TDMConnection
.
VerifyVersion
(
SuccessProc
:
TSuccessProc
);
begin
console
.
log
(
'VerifyVersion: calling server'
);
XDataWebClient1
.
Connection
:=
AuthConnection
;
XDataWebClient1
.
RawInvoke
(
'IAuthService.VerifyVersion'
,
[
clientVersion
],
...
...
@@ -106,7 +102,6 @@ begin
jsonResult
:
TJSObject
;
error
:
string
;
begin
console
.
log
(
'VerifyVersion: response received'
);
jsonResult
:=
TJSObject
(
Response
.
Result
);
if
Assigned
(
jsonResult
)
and
jsonResult
.
HasOwnProperty
(
'error'
)
then
...
...
@@ -121,8 +116,7 @@ begin
end
,
procedure
(
Error
:
TXDataClientError
)
begin
console
.
log
(
'VerifyVersion ERROR: '
+
Error
.
ErrorMessage
);
TFViewErrorPage
.
Display
(
'Unable to connect to the database.'
);
TFViewErrorPage
.
Display
(
Error
.
ErrorMessage
);
end
);
end
;
...
...
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