Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
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
core
picodata
Commits
b014a624
Commit
b014a624
authored
1 year ago
by
Georgy Moshkin
Browse files
Options
Downloads
Patches
Plain Diff
refactor: setup logging ASAP
parent
a83d56d8
No related branches found
No related tags found
1 merge request
!893
feat: --config parameter to specify picodata configuration file
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cli/run.rs
+4
-0
4 additions, 0 deletions
src/cli/run.rs
src/lib.rs
+0
-3
0 additions, 3 deletions
src/lib.rs
with
4 additions
and
3 deletions
src/cli/run.rs
+
4
−
0
View file @
b014a624
...
...
@@ -9,6 +9,10 @@ use crate::{ipc, tarantool_main, tlog, Entrypoint, IpcMessage};
use
super
::
args
;
pub
fn
main
(
args
:
args
::
Run
)
->
!
{
// Set the log level as soon as possible to not miss any messages during
// initialization.
tlog
::
set_log_level
(
args
.log_level
());
// Tarantool implicitly parses some environment variables.
// We don't want them to affect the behavior and thus filter them out.
for
(
k
,
_
)
in
std
::
env
::
vars
()
{
...
...
This diff is collapsed.
Click to expand it.
src/lib.rs
+
0
−
3
View file @
b014a624
...
...
@@ -577,7 +577,6 @@ fn init_common(args: &args::Run, cfg: &tarantool::Cfg) -> (Clusterwide, RaftSpac
fn
start_discover
(
args
:
&
args
::
Run
,
to_supervisor
:
ipc
::
Sender
<
IpcMessage
>
)
->
Result
<
(),
Error
>
{
tlog!
(
Info
,
">>>>> start_discover()"
);
tlog
::
set_log_level
(
args
.log_level
());
luamod
::
setup
(
args
);
assert!
(
tarantool
::
cfg
()
.is_none
());
...
...
@@ -677,7 +676,6 @@ fn start_boot(args: &args::Run) -> Result<(), Error> {
let
raft_id
=
instance
.raft_id
;
let
instance_id
=
instance
.instance_id
.clone
();
tlog
::
set_log_level
(
args
.log_level
());
luamod
::
setup
(
args
);
assert!
(
tarantool
::
cfg
()
.is_none
());
...
...
@@ -784,7 +782,6 @@ fn start_join(args: &args::Run, instance_address: String) -> Result<(), Error> {
}
};
tlog
::
set_log_level
(
args
.log_level
());
luamod
::
setup
(
args
);
assert!
(
tarantool
::
cfg
()
.is_none
());
...
...
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