@@ -105,27 +105,7 @@ main = silence $ do
105
105
-- Otherwise run the real deal, the real function.
106
106
runDefaultUpdateProcess filePath arguments
107
107
108
-
109
- -- the log output path (TODO: get base path from configuration)
110
- logfilepath <- pure " Logs/launcher"
111
-
112
108
logConfig <- defaultConfigStdout
113
- scribes0 <- CM. getSetupScribes logConfig
114
- CM. setSetupScribes logConfig $ scribes0 <>
115
- [ScribeDefinition {
116
- scName = logfilepath,
117
- scFormat = ScText ,
118
- scKind = FileSK ,
119
- scPrivacy = ScPublic ,
120
- scRotation = Just $ RotationParameters
121
- {
122
- rpLogLimitBytes = 10000000 ,
123
- rpMaxAgeHours = 24 ,
124
- rpKeepFilesNum = 3
125
- }
126
- }]
127
- CM. setDefaultScribes logConfig [ " StdoutSK::text"
128
- , " FileSK::" <> logfilepath ]
129
109
130
110
-- A safer way to close the tracing.
131
111
withTrace logConfig " launcher" $ \ baseTrace -> do
@@ -151,6 +131,26 @@ main = silence $ do
151
131
throwM $ LauncherOptionsError (show err)
152
132
Right lo -> pure lo
153
133
134
+ -- the log output path (TODO: get base path from configuration)
135
+ let logfilepath = lologsPrefix launcherOptions <> " Logs/launcher"
136
+
137
+ scribes0 <- CM. getSetupScribes logConfig
138
+ CM. setSetupScribes logConfig $ scribes0 <>
139
+ [ScribeDefinition {
140
+ scName = toS logfilepath,
141
+ scFormat = ScText ,
142
+ scKind = FileSK ,
143
+ scPrivacy = ScPublic ,
144
+ scRotation = Just $ RotationParameters
145
+ {
146
+ rpLogLimitBytes = 10000000 ,
147
+ rpMaxAgeHours = 24 ,
148
+ rpKeepFilesNum = 3
149
+ }
150
+ }]
151
+ CM. setDefaultScribes logConfig [ " StdoutSK::text"
152
+ , " FileSK::" <> toS logfilepath ]
153
+
154
154
let lockFile = loStateDir launcherOptions <> " /daedalus_lockfile"
155
155
Trace. logNotice baseTrace $ " Locking file so that multiple applications won't run at same time"
156
156
-- Check if it's locked or not. Will throw an exception if the
0 commit comments