How to Change Ancor to Debug Mode

Modified on Fri, 1 Aug at 12:53 AM

Purpose


Changing the log level to DEBUG in Ancor is helpful for deeper troubleshooting and detailed logging. This setting enables verbose output, which is especially useful when investigating unexpected behaviour or technical issues.


Steps to Enable Debug Mode in Ancor

  1. Log in to the Ancor Server

    • Use SSH or direct terminal access to log in as a user with sufficient privileges.

  2. Navigate to the Configuration Directory

    cd /usr/local/scaprepo/conf
  3. Edit the Configuration File

    • Open the file repo.config using your preferred text editor (e.g., vi or nano):

  4. sudo vi repo.config

    or

    sudo nano repo.config
  5. Modify the Log Level

    • Locate the line:

      loglevel=INFO
    • Change it to:

      loglevel=DEBUG
  6. (Refer to the screenshot below)

  7. Save and Exit the File

    • In vi, press Esc, then type :wq and press Enter.

    • In nano, press Ctrl+X to exit.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article