Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
8a55e3e3
Commit
8a55e3e3
authored
5 months ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Add log levels to the rest of the log() calls.
parent
3ec95ac3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/imapservice.js
+5
-5
5 additions, 5 deletions
exec/imapservice.js
with
5 additions
and
5 deletions
exec/imapservice.js
+
5
−
5
View file @
8a55e3e3
...
...
@@ -176,9 +176,9 @@ function dump_obj(obj, name)
function
debug_log
(
line
,
rx
)
{
if
(
debug
)
log
(
line
);
log
(
LOG_DEBUG
,
line
);
else
if
(
rx
&&
debugRX
)
log
(
line
);
log
(
LOG_DEBUG
,
line
);
}
...
...
@@ -1561,7 +1561,7 @@ function exit_func()
catch
(
error
)
{}
if
(
locked_code
!==
undefined
)
{
try
{
log
(
"
At exit,
"
+
locked_code
+
"
is still locked.
"
);
log
(
LOG_WARNING
,
"
At exit,
"
+
locked_code
+
"
is still locked.
"
);
unlock_cfg
(
locked_code
);
}
catch
(
error
)
{}
...
...
@@ -2917,7 +2917,7 @@ function do_search(args, uid)
if
(
search_set
.
hdr
.
length
>
0
||
search_set
.
all
.
length
>
0
)
{
hdr
=
base
.
get_msg_header
(
true
,
idx
.
offset
,
/* expand_fields: */
false
);
if
(
hdr
==
null
)
{
log
(
"
Unable to get header for idx.number
"
);
log
(
LOG_DEBUG
,
"
Unable to get header for idx.number
"
);
continue
;
}
for
(
j
in
search_set
.
hdr
)
{
...
...
@@ -2930,7 +2930,7 @@ function do_search(args, uid)
if
(
search_set
.
body
.
length
>
0
||
search_set
.
all
.
length
>
0
)
{
body
=
base
.
get_msg_body
(
true
,
idx
.
offset
,
true
,
true
,
true
).
toUpperCase
();
if
(
body
==
null
)
{
log
(
"
Unable to get body for idx.number
"
);
log
(
LOG_DEBUG
,
"
Unable to get body for idx.number
"
);
continue
;
}
for
(
j
in
search_set
.
body
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment