Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Copy of server log is now conditional - #50

Merged
jnfrmarks merged 1 commit into
masterfrom
server-log
Mar 27, 2015
Merged

jnfrmarks merged 1 commit into
masterfrom
server-log

Conversation

@jnfrmarks

Copy link
Copy Markdown

Created a property to conditionally copy the sever log. The default is False

@PVince81 @SergioBertolinSG @jvillafanez

Comment thread python/smashbox/utilities/__init__.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a "copy_server_log" flag to prevent deleting the log..... I find it confusing

Do we want to copy the log but not delete it? Delete it but not copy?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't changed yet 😄

I'm fine with changing the name

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, one ctrl + z too much... will fix

@jnfrmarks

Copy link
Copy Markdown
Author

@jvillafanez

Maybe the name of the property is wrong -

If the flag is set to true we want to check the server log file for errors. Part of that processing is to delete the file first. I'd prefer to use one flag for this whole check so that there isn't a possibility of not setting one but setting the other. How about something like scrape_log_file? I'm fine with using any property name here.

@nickvergessen

Copy link
Copy Markdown

This helps here (dont need to comment out the copying anymore)

Idea for the name reset_server_log ?

@nickvergessen

Copy link
Copy Markdown

👍 as discussed

@jnfrmarks

Copy link
Copy Markdown
Author

@nickvergessen - thanks for taking this one on.

I'm good with the property name change. Did you run a test and validate the sever log is processed? If so, then this has my 👍

Then do I merge this or do you merge this? I think we might be in 👍 deadlock :)

@nickvergessen

Copy link
Copy Markdown

The problem is I can't use it with True since that creates permission errors on my machine ;)

Regarding the deadlock maybe @SergioBertolinSG can help us ;)

@SergioBertolinSG

Copy link
Copy Markdown

With it to False there is no problem, but True doesn't erase the log file.

@SergioBertolinSG

Copy link
Copy Markdown

Working fine, my server was badly-configured 👍

jnfrmarks pushed a commit that referenced this pull request Mar 27, 2015
Copy of server log is now conditional
@jnfrmarks
jnfrmarks merged commit 9955fc8 into master Mar 27, 2015
@jnfrmarks
jnfrmarks deleted the server-log branch March 27, 2015 14:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants