VirtualBox

Changeset 77557 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Mar 4, 2019 3:58:23 PM (6 years ago)
Author:
vboxsync
Message:

IPRT: Moved the RTLogSetGroupLimit() functionality into the RTLogCreateEx() call, adding an env var for overriding it (suffix '_MAX_PER_GROUP', e.g. 'export VBOX_RELEASE_LOG_MAX_PER_GROUP=0' for no limit).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/VBoxLogRelCreate.cpp

    r77555 r77557  
    150150#endif
    151151    g_pszLogEntity = pcszEntity;
    152     int vrc = RTLogCreateEx(&pReleaseLogger, fFlags, pcszGroupSettings,
    153                             pcszEnvVarBase, RT_ELEMENTS(s_apszGroups), s_apszGroups, fDestFlags,
     152    int vrc = RTLogCreateEx(&pReleaseLogger, fFlags, pcszGroupSettings, pcszEnvVarBase,
     153                            RT_ELEMENTS(s_apszGroups), s_apszGroups, cMaxEntriesPerGroup, fDestFlags,
    154154                            vboxHeaderFooter, cHistory, uHistoryFileSize, uHistoryFileTime,
    155155                            pErrInfo, pcszLogFile ? "%s" : NULL, pcszLogFile);
    156156    if (RT_SUCCESS(vrc))
    157157    {
    158         /* make sure that we don't flood logfiles */
    159         RTLogSetGroupLimit(pReleaseLogger, cMaxEntriesPerGroup);
    160 
    161158        /* explicitly flush the log, to have some info when buffering */
    162159        RTLogFlush(pReleaseLogger);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette