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
fe33deb7
Commit
fe33deb7
authored
4 years ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Make log level selection a menu like every other non-binary option.
parent
67469416
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Pipeline
#1516
passed
4 years ago
Stage: build
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/syncterm/bbslist.c
+36
-18
36 additions, 18 deletions
src/syncterm/bbslist.c
with
36 additions
and
18 deletions
src/syncterm/bbslist.c
+
36
−
18
View file @
fe33deb7
...
...
@@ -897,9 +897,9 @@ int edit_list(struct bbslist **list, struct bbslist *item,char *listpath,int isd
"~ Log File ~
\n
"
" Log file name when logging is enabled
\n\n
"
"~ Log Transfers ~
\n
"
"
Cycles through the various
transfer log
settings
.
\n\n
"
"
Selects the
transfer log
level
.
\n\n
"
"~ Log Telnet Cmds ~
\n
"
"
Cycles through the various
telnet command log
settings
.
\n\n
"
"
Selects the
telnet command log
level
.
\n\n
"
"~ Append Log File ~
\n
"
" Append log file (instead of overwrite) on each connection
\n\n
"
"~ Comm Rate ~
\n
"
...
...
@@ -943,9 +943,9 @@ int edit_list(struct bbslist **list, struct bbslist *item,char *listpath,int isd
"~ Log File ~
\n
"
" Log file name when logging is enabled
\n\n
"
"~ Log Transfers ~
\n
"
"
Cycles through the various
transfer log
settings
.
\n\n
"
"
Selects the
transfer log
level
.
\n\n
"
"~ Log Telnet Cmds ~
\n
"
"
Cycles through the various
telnet command log
settings
.
\n\n
"
"
Selects the
telnet command log
level
.
\n\n
"
"~ Append Log File ~
\n
"
" Append log file (instead of overwrite) on each connection
\n\n
"
"~ Comm Rate ~
\n
"
...
...
@@ -1209,22 +1209,40 @@ int edit_list(struct bbslist **list, struct bbslist *item,char *listpath,int isd
check_exit
(
FALSE
);
break
;
case
12
:
item
->
xfer_loglevel
--
;
if
(
item
->
xfer_loglevel
<
0
)
item
->
xfer_loglevel
=
LOG_DEBUG
;
else
if
(
item
->
xfer_loglevel
<
LOG_ERR
)
item
->
xfer_loglevel
=
0
;
iniSetEnum
(
&
inifile
,
itemname
,
"TransferLogLevel"
,
log_levels
,
item
->
xfer_loglevel
,
&
ini_style
);
changed
=
1
;
uifc
.
helpbuf
=
"`Log Transfers`
\n\n
"
"Select the varbosity level for logging.
\n
"
"The lower in the list the item, the more berbose the log.
\n
"
"Each level includes all messages in levels above it."
;
i
=
item
->
xfer_loglevel
;
switch
(
uifc
.
list
(
WIN_SAV
,
0
,
0
,
0
,
&
(
item
->
xfer_loglevel
),
NULL
,
"Log Transfers"
,
log_level_desc
))
{
case
-
1
:
item
->
xfer_loglevel
=
i
;
check_exit
(
FALSE
);
break
;
default:
if
(
item
->
xfer_loglevel
!=
i
)
{
iniSetEnum
(
&
inifile
,
itemname
,
"TransferLogLevel"
,
log_levels
,
item
->
xfer_loglevel
,
&
ini_style
);
changed
=
1
;
}
}
break
;
case
13
:
item
->
telnet_loglevel
--
;
if
(
item
->
telnet_loglevel
<
0
)
item
->
telnet_loglevel
=
LOG_DEBUG
;
else
if
(
item
->
telnet_loglevel
<
LOG_ERR
)
item
->
telnet_loglevel
=
0
;
iniSetEnum
(
&
inifile
,
itemname
,
"TelnetLogLevel"
,
log_levels
,
item
->
telnet_loglevel
,
&
ini_style
);
changed
=
1
;
uifc
.
helpbuf
=
"`Log Telnet Commands`
\n\n
"
"Select the varbosity level for logging.
\n
"
"The lower in the list the item, the more berbose the log.
\n
"
"Each level includes all messages in levels above it."
;
i
=
item
->
telnet_loglevel
;
switch
(
uifc
.
list
(
WIN_SAV
,
0
,
0
,
0
,
&
(
item
->
telnet_loglevel
),
NULL
,
"Log Transfers"
,
log_level_desc
))
{
case
-
1
:
item
->
telnet_loglevel
=
i
;
check_exit
(
FALSE
);
break
;
default:
if
(
item
->
telnet_loglevel
!=
i
)
{
iniSetEnum
(
&
inifile
,
itemname
,
"TransferLogLevel"
,
log_levels
,
item
->
telnet_loglevel
,
&
ini_style
);
changed
=
1
;
}
}
break
;
case
14
:
item
->
append_logfile
=!
item
->
append_logfile
;
...
...
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