Add variable evaluations to logs


Could we get the output of variable evaluations in deployment logs? I have some steps that are failing to deploy because they depend on some complex-ish logic since the deployment process can branch slightly. However, this means things can fail in a seemingly random way that is difficult to diagnose.

Thanks. Any tips to get at this information some other way would be appreciated.

Hi Michael,

Thanks for getting in touch! You can certainly write the variable evaluations to the deployment log! This is done by adding the following variables to your project:

OctopusPrintVariables with a value of True
OctopusPrintEvaluatedVariables with a value of True

To apply these variables, you’ll need to create a new release of your project. You can read some additional information on debugging with these variables in our documentation.

I hope this helps! Let me know how you go or if you have any further questions moving forward. :slight_smile:

Best regards,


1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.