improve name
This commit is contained in:
parent
7036d0a4c1
commit
62d630272e
3 changed files with 5 additions and 5 deletions
|
@ -76,7 +76,7 @@ module Annex.Locations (
|
||||||
gitAnnexPidFile,
|
gitAnnexPidFile,
|
||||||
gitAnnexPidLockFile,
|
gitAnnexPidLockFile,
|
||||||
gitAnnexDaemonStatusFile,
|
gitAnnexDaemonStatusFile,
|
||||||
gitAnnexLogFile,
|
gitAnnexDaemonLogFile,
|
||||||
gitAnnexFuzzTestLogFile,
|
gitAnnexFuzzTestLogFile,
|
||||||
gitAnnexHtmlShim,
|
gitAnnexHtmlShim,
|
||||||
gitAnnexUrlFile,
|
gitAnnexUrlFile,
|
||||||
|
@ -513,8 +513,8 @@ gitAnnexDaemonStatusFile r = fromRawFilePath $
|
||||||
gitAnnexDir r P.</> "daemon.status"
|
gitAnnexDir r P.</> "daemon.status"
|
||||||
|
|
||||||
{- Log file for daemon mode. -}
|
{- Log file for daemon mode. -}
|
||||||
gitAnnexLogFile :: Git.Repo -> FilePath
|
gitAnnexDaemonLogFile :: Git.Repo -> FilePath
|
||||||
gitAnnexLogFile r = fromRawFilePath $ gitAnnexDir r P.</> "daemon.log"
|
gitAnnexDaemonLogFile r = fromRawFilePath $ gitAnnexDir r P.</> "daemon.log"
|
||||||
|
|
||||||
{- Log file for fuzz test. -}
|
{- Log file for fuzz test. -}
|
||||||
gitAnnexFuzzTestLogFile :: Git.Repo -> FilePath
|
gitAnnexFuzzTestLogFile :: Git.Repo -> FilePath
|
||||||
|
|
|
@ -221,7 +221,7 @@ hourlyCheck = do
|
||||||
-}
|
-}
|
||||||
checkLogSize :: Int -> Assistant ()
|
checkLogSize :: Int -> Assistant ()
|
||||||
checkLogSize n = do
|
checkLogSize n = do
|
||||||
f <- liftAnnex $ fromRepo gitAnnexLogFile
|
f <- liftAnnex $ fromRepo gitAnnexDaemonLogFile
|
||||||
logs <- liftIO $ listLogs f
|
logs <- liftIO $ listLogs f
|
||||||
totalsize <- liftIO $ sum <$> mapM getFileSize logs
|
totalsize <- liftIO $ sum <$> mapM getFileSize logs
|
||||||
when (totalsize > 2 * oneMegabyte) $ do
|
when (totalsize > 2 * oneMegabyte) $ do
|
||||||
|
|
|
@ -72,7 +72,7 @@ getRestartThreadR name = do
|
||||||
|
|
||||||
getLogR :: Handler Html
|
getLogR :: Handler Html
|
||||||
getLogR = page "Logs" Nothing $ do
|
getLogR = page "Logs" Nothing $ do
|
||||||
logfile <- liftAnnex $ fromRepo gitAnnexLogFile
|
logfile <- liftAnnex $ fromRepo gitAnnexDaemonLogFile
|
||||||
logs <- liftIO $ listLogs logfile
|
logs <- liftIO $ listLogs logfile
|
||||||
logcontent <- liftIO $ concat <$> mapM readFile logs
|
logcontent <- liftIO $ concat <$> mapM readFile logs
|
||||||
$(widgetFile "control/log")
|
$(widgetFile "control/log")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue