Skip to content

Conversation

slashterix
Copy link
Contributor

Fixes #223
Replaces PR #224 (based on working instead of master)

Allows for enabling and disabling CDN Log Retention

Need to actually unset the header to properly disable access logs.
Can't use saveMetadata() like Container.php because of the name of the
header. Copied code from setStaticIndexPage()
jamiehannaford pushed a commit that referenced this pull request Nov 15, 2013
Add functions to enable / disable CDN Access Logs
@jamiehannaford jamiehannaford merged commit 12eef35 into rackspace:working Nov 15, 2013
@jamiehannaford
Copy link
Contributor

@slashterix Hey Steven, this is great - thanks. There are a few mistakes which I can correct. To enable/disable logging for a normal container:

X-Container-Meta-Access-Log-Delivery = True or False

And for the CDN:

X-Log-Retention = True or False

So to disable, you don't need to call unsetMetadataItem which appends X-Remove- to the header.

jamiehannaford added a commit that referenced this pull request Nov 15, 2013
@slashterix
Copy link
Contributor Author

Ah OK. Ya the old code used the constant false instead of the string 'False' and that's why it wasn't working for me.

I can confirm you changes work great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to set CDN logging?

3 participants