Skip to content

Commit

Permalink
Fix log file name display
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelWats0n committed Nov 2, 2022
1 parent 1fb7c18 commit 695dd95
Show file tree
Hide file tree
Showing 58 changed files with 1,442 additions and 537 deletions.
28 changes: 24 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion control_panel/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async fn control_panel_run() {

#[actix_web::main]
async fn main() {
init_infrastructure("control_panel_log.txt");
init_infrastructure();

if (AssertUnwindSafe(control_panel_run()).catch_unwind().await).is_err() {
PANIC_STATE.with(|panic_state| {
Expand Down
14 changes: 7 additions & 7 deletions core/src/balance/changes/profit_loss_stopper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub(crate) mod test {
};
use mmb_domain::order::snapshot::Amount;
use mmb_domain::order::snapshot::ClientOrderFillId;
use mmb_utils::{logger::init_logger_file_named, DateTime};
use mmb_utils::{logger::init_logger, DateTime};
use parking_lot::{Mutex, ReentrantMutexGuard};
use rust_decimal_macros::dec;

Expand Down Expand Up @@ -329,7 +329,7 @@ pub(crate) mod test {

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
pub async fn add_change_should_calculate_usd_correctly() {
init_logger_file_named("log.txt");
init_logger();
let context = init(max_period(), 4);

context
Expand Down Expand Up @@ -363,7 +363,7 @@ pub(crate) mod test {

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
pub async fn add_change_should_ignore_old_data() {
init_logger_file_named("log.txt");
init_logger();
let context = init(max_period(), 3);

context
Expand Down Expand Up @@ -391,7 +391,7 @@ pub(crate) mod test {

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
pub async fn check_for_limit_should_stop_transaction() {
init_logger_file_named("log.txt");
init_logger();
let (mut exchange_blocker, exchange_blocker_locker) = ExchangeBlocker::init_mock();
exchange_blocker
.expect_block()
Expand Down Expand Up @@ -444,7 +444,7 @@ pub(crate) mod test {

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
pub async fn check_for_limit_should_recover_after_positive_tarde() {
init_logger_file_named("log.txt");
init_logger();
let (mut exchange_blocker, exchange_blocker_locker) = ExchangeBlocker::init_mock();
exchange_blocker
.expect_block()
Expand Down Expand Up @@ -521,7 +521,7 @@ pub(crate) mod test {

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
pub async fn check_for_limit_should_recover_after_first_change_expired() {
init_logger_file_named("log.txt");
init_logger();
let (mut exchange_blocker, exchange_blocker_locker) = ExchangeBlocker::init_mock();
exchange_blocker
.expect_block()
Expand Down Expand Up @@ -606,7 +606,7 @@ pub(crate) mod test {

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
pub async fn check_for_limit_should_recover_after_time_period() {
init_logger_file_named("log.txt");
init_logger();
let (mut exchange_blocker, exchange_blocker_locker) = ExchangeBlocker::init_mock();
exchange_blocker
.expect_block()
Expand Down
Loading

0 comments on commit 695dd95

Please sign in to comment.