mirror of
https://github.com/laoxong/nofx.git
synced 2026-06-04 09:58:22 +08:00
fix: initial balance calculation and UI improvements
- Fix initial balance using available_balance instead of total_equity - Fix WSMonitor nil pointer by starting market monitor before loading traders - Add strategy name display on traders list and dashboard pages - Various position sync and trading improvements
This commit is contained in:
+2
-1
@@ -26,6 +26,7 @@ type compactFormatter struct {
|
||||
|
||||
func (f *compactFormatter) Format(entry *logrus.Entry) ([]byte, error) {
|
||||
level := strings.ToUpper(entry.Level.String())[0:4]
|
||||
timestamp := entry.Time.Format("01-02 15:04:05")
|
||||
|
||||
// Skip frames to find actual caller (skip logrus + our wrapper functions)
|
||||
caller := ""
|
||||
@@ -44,7 +45,7 @@ func (f *compactFormatter) Format(entry *logrus.Entry) ([]byte, error) {
|
||||
}
|
||||
}
|
||||
|
||||
msg := fmt.Sprintf("[%s] %s %s\n", level, caller, entry.Message)
|
||||
msg := fmt.Sprintf("%s [%s] %s %s\n", timestamp, level, caller, entry.Message)
|
||||
return []byte(msg), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user