Exemple #1
0
        public Journal ReadJournalFiles()
        {
            Logger.Info("Read journal file");

            string masterAccount = null;

            if (MasterAccountHandler.Handled)
            {
                masterAccount = MasterAccountHandler.Str();
            }

            int count = ReadData(masterAccount);

            Logger.Info("Finished, found {0} transactions", count);

            return(Journal);
        }
Exemple #2
0
        /// <summary>
        /// Ported from journal_t * session_t::read_journal_files
        /// </summary>
        public Journal ReadJournalFiles()
        {
            var info = Logger.Current.InfoContext(TimerName.Journal)?.Message("Read journal file").Start();  // INFO_START

            string masterAccount = null;

            if (MasterAccountHandler.Handled)
            {
                masterAccount = MasterAccountHandler.Str();
            }

            int count = ReadData(masterAccount);

            info?.Finish(); // INFO_FINISH

            Logger.Current.Info(() => String.Format("Found {0} transactions", count));

            return(Journal);
        }