Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix disabling logs #4561

Merged
merged 2 commits into from Apr 12, 2020
Merged

Fix disabling logs #4561

merged 2 commits into from Apr 12, 2020

Commits on Dec 10, 2019

  1. pm2@4.2.1

    Unitech committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    5ad2446 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2019

  1. Fix disabling logs bugs (#4560)

    When log path set to "/dev/null" in Windows, PM2 creates 'C:\dev\null'.
    After remove "C:\dev" folder while PM2 is stopped, PM2 can't restart app.
    Because, Path changed to "C:\dev\null" not "/dev/null" in Windows.
    (libs/Utility.js - 174)
    When log path set to "NULL" in Windows and Linux and flush logs,
    PM2 creates 'NULL' in source code directory.
    
    So, If log path is "NULL" or "/dev/null" then
    forces path to "\\.\NUL" when Windows and "/dev/null" when Linux.
    It works both on Windows and Linux, without any create "C:\dev" or "NULL".
    codpot committed Dec 28, 2019
    Configuration menu
    Copy the full SHA
    f3259c0 View commit details
    Browse the repository at this point in the history